525
|
FilterBarCaption AVAILABLE Keyword ( sample 2, result )

// InsertItem event - Occurs after a new item has been inserted to Items collection.
void OnInsertItemComboBox1(long Item)
{
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library'
#import <ExComboBox.dll>
using namespace EXCOMBOBOXLib;
*/
EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown();
_variant_t i = spComboBox1->FormatABC(L"value + 1",spComboBox1->GetItems()->GetItemToIndex(Item),vtMissing,vtMissing);
spComboBox1->GetItems()->PutCellImage(Item,long(3),i);
}
EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown();
spComboBox1->BeginUpdate();
spComboBox1->Images(_bstr_t("gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0/oFBoVDolFo1HpFJpVLplNp1PqFRqVTq") +
"lVq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m" +
"0ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qOx3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/y" +
"NAOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA=");
EXCOMBOBOXLib::IColumnPtr var_Column = ((EXCOMBOBOXLib::IColumnPtr)(spComboBox1->GetColumns()->Add(L"Col-1")));
var_Column->PutDisplayFilterButton(VARIANT_TRUE);
var_Column->PutFilterList(EXCOMBOBOXLib::FilterListEnum(EXCOMBOBOXLib::exShowExclude | EXCOMBOBOXLib::exShowFocusItem | EXCOMBOBOXLib::exShowCheckBox | EXCOMBOBOXLib::exSortItemsAsc));
EXCOMBOBOXLib::IColumnPtr var_Column1 = ((EXCOMBOBOXLib::IColumnPtr)(spComboBox1->GetColumns()->Add(L"Col-2")));
var_Column1->PutDisplayFilterButton(VARIANT_TRUE);
var_Column1->PutFilterList(EXCOMBOBOXLib::FilterListEnum(EXCOMBOBOXLib::exShowExclude | EXCOMBOBOXLib::exShowFocusItem | EXCOMBOBOXLib::exShowCheckBox | EXCOMBOBOXLib::exSortItemsAsc));
EXCOMBOBOXLib::IColumnPtr var_Column2 = ((EXCOMBOBOXLib::IColumnPtr)(spComboBox1->GetColumns()->Add(L"Check")));
var_Column2->PutDef(EXCOMBOBOXLib::exCellHasCheckBox,VARIANT_TRUE);
var_Column2->PutDisplayFilterButton(VARIANT_TRUE);
var_Column2->PutDisplayFilterPattern(VARIANT_FALSE);
var_Column2->PutFilterType(EXCOMBOBOXLib::exCheck);
EXCOMBOBOXLib::IColumnPtr var_Column3 = ((EXCOMBOBOXLib::IColumnPtr)(spComboBox1->GetColumns()->Add(L"Image")));
var_Column3->PutDisplayFilterButton(VARIANT_TRUE);
var_Column3->PutFilterType(EXCOMBOBOXLib::exImage);
var_Column3->PutFilterList(EXCOMBOBOXLib::FilterListEnum(EXCOMBOBOXLib::exShowExclude | EXCOMBOBOXLib::exShowFocusItem | EXCOMBOBOXLib::exShowCheckBox));
EXCOMBOBOXLib::IColumnPtr var_Column4 = ((EXCOMBOBOXLib::IColumnPtr)(spComboBox1->GetColumns()->Add(L"Pos")));
var_Column4->PutAllowSizing(VARIANT_FALSE);
var_Column4->PutAllowSort(VARIANT_FALSE);
var_Column4->PutWidth(32);
var_Column4->PutFormatColumn(L"1 apos ``");
var_Column4->PutPosition(0);
EXCOMBOBOXLib::IItemsPtr var_Items = spComboBox1->GetItems();
var_Items->PutCellCaption(var_Items->AddItem("Item A"),long(1),"Sub-Item A");
long h = var_Items->AddItem("Item B");
var_Items->PutCellCaption(h,long(1),"Sub-Item B");
var_Items->PutCellState(h,long(2),1);
var_Items->PutCellCaption(var_Items->AddItem("Item C"),long(1),"Sub-Item C");
/*
Copy and paste the following directives to your header file as
it defines the namespace 'stdole' for the library: 'OLE Automation'
#import <stdole2.tlb>
*/
spComboBox1->PutFilterBarFont(IFontDispPtr(((stdole::FontPtr)(spComboBox1->GetFont()))));
spComboBox1->PutDescription(EXCOMBOBOXLib::exFilterBarAnd,_bstr_t(spComboBox1->FormatABC(L"`<fgcolor=808080> ` + value + ` </fgcolor>`",spComboBox1->GetDescription(EXCOMBOBOXLib::exFilterBarAnd),vtMissing,vtMissing)));
spComboBox1->PutFilterBarCaption(_bstr_t("(( ( value replace `[` with `<bgcolor=000000><fgcolor=FFFFFF><b> ` replace `]` with ` </b></bgcolor></fgcolor>` ) + ` ` + ( ava") +
"ilable replace `[` with `<bgcolor=C0C0C0><fgcolor=FFFFFF><b> ` replace `]` with ` </b></bgcolor></fgcolor>` replace `<s>` with `" +
"` replace `</s>` with `` ) + `<fgcolor=808080>` + ( matchitemcount < 0 ? ( ( len(value) ? `` : `` ) + `<r>` + abs(matchitemcount" +
" + 1) + ` result(s)` ) : (`<r><fgcolor=808080>`+ itemcount + ` item(s)`) )))");
spComboBox1->PutFilterBarPromptVisible(EXCOMBOBOXLib::FilterBarVisibleEnum(EXCOMBOBOXLib::exFilterBarVisible | EXCOMBOBOXLib::exFilterBarPromptVisible));
EXCOMBOBOXLib::IColumnPtr var_Column5 = spComboBox1->GetColumns()->GetItem(long(0));
var_Column5->PutFilterType(EXCOMBOBOXLib::exFilter);
var_Column5->PutFilter(L"Item A|Item B");
spComboBox1->GetColumns()->GetItem(long(2))->PutFilter(L"1");
spComboBox1->ApplyFilter();
spComboBox1->EndUpdate();
|
524
|
FilterBarCaption AVAILABLE Keyword ( sample 1 )

// InsertItem event - Occurs after a new item has been inserted to Items collection.
void OnInsertItemComboBox1(long Item)
{
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library'
#import <ExComboBox.dll>
using namespace EXCOMBOBOXLib;
*/
EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown();
_variant_t i = spComboBox1->FormatABC(L"value + 1",spComboBox1->GetItems()->GetItemToIndex(Item),vtMissing,vtMissing);
spComboBox1->GetItems()->PutCellImage(Item,long(3),i);
}
EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown();
spComboBox1->BeginUpdate();
spComboBox1->Images(_bstr_t("gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0/oFBoVDolFo1HpFJpVLplNp1PqFRqVTq") +
"lVq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m" +
"0ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qOx3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/y" +
"NAOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA=");
EXCOMBOBOXLib::IColumnPtr var_Column = ((EXCOMBOBOXLib::IColumnPtr)(spComboBox1->GetColumns()->Add(L"Col-1")));
var_Column->PutDisplayFilterButton(VARIANT_TRUE);
var_Column->PutFilterList(EXCOMBOBOXLib::FilterListEnum(EXCOMBOBOXLib::exShowExclude | EXCOMBOBOXLib::exShowFocusItem | EXCOMBOBOXLib::exShowCheckBox | EXCOMBOBOXLib::exSortItemsAsc));
EXCOMBOBOXLib::IColumnPtr var_Column1 = ((EXCOMBOBOXLib::IColumnPtr)(spComboBox1->GetColumns()->Add(L"Col-2")));
var_Column1->PutDisplayFilterButton(VARIANT_TRUE);
var_Column1->PutFilterList(EXCOMBOBOXLib::FilterListEnum(EXCOMBOBOXLib::exShowExclude | EXCOMBOBOXLib::exShowFocusItem | EXCOMBOBOXLib::exShowCheckBox | EXCOMBOBOXLib::exSortItemsAsc));
EXCOMBOBOXLib::IColumnPtr var_Column2 = ((EXCOMBOBOXLib::IColumnPtr)(spComboBox1->GetColumns()->Add(L"Check")));
var_Column2->PutDef(EXCOMBOBOXLib::exCellHasCheckBox,VARIANT_TRUE);
var_Column2->PutDisplayFilterButton(VARIANT_TRUE);
var_Column2->PutDisplayFilterPattern(VARIANT_FALSE);
var_Column2->PutFilterType(EXCOMBOBOXLib::exCheck);
EXCOMBOBOXLib::IColumnPtr var_Column3 = ((EXCOMBOBOXLib::IColumnPtr)(spComboBox1->GetColumns()->Add(L"Image")));
var_Column3->PutDisplayFilterButton(VARIANT_TRUE);
var_Column3->PutFilterType(EXCOMBOBOXLib::exImage);
var_Column3->PutFilterList(EXCOMBOBOXLib::FilterListEnum(EXCOMBOBOXLib::exShowExclude | EXCOMBOBOXLib::exShowFocusItem | EXCOMBOBOXLib::exShowCheckBox));
EXCOMBOBOXLib::IColumnPtr var_Column4 = ((EXCOMBOBOXLib::IColumnPtr)(spComboBox1->GetColumns()->Add(L"Pos")));
var_Column4->PutAllowSizing(VARIANT_FALSE);
var_Column4->PutAllowSort(VARIANT_FALSE);
var_Column4->PutWidth(32);
var_Column4->PutFormatColumn(L"1 apos ``");
var_Column4->PutPosition(0);
EXCOMBOBOXLib::IItemsPtr var_Items = spComboBox1->GetItems();
var_Items->PutCellCaption(var_Items->AddItem("Item A"),long(1),"Sub-Item A");
long h = var_Items->AddItem("Item B");
var_Items->PutCellCaption(h,long(1),"Sub-Item B");
var_Items->PutCellState(h,long(2),1);
var_Items->PutCellCaption(var_Items->AddItem("Item C"),long(1),"Sub-Item C");
/*
Copy and paste the following directives to your header file as
it defines the namespace 'stdole' for the library: 'OLE Automation'
#import <stdole2.tlb>
*/
spComboBox1->PutFilterBarFont(IFontDispPtr(((stdole::FontPtr)(spComboBox1->GetFont()))));
spComboBox1->PutDescription(EXCOMBOBOXLib::exFilterBarAnd,_bstr_t(spComboBox1->FormatABC(L"`<fgcolor=808080> ` + value + ` </fgcolor>`",spComboBox1->GetDescription(EXCOMBOBOXLib::exFilterBarAnd),vtMissing,vtMissing)));
spComboBox1->PutFilterBarCaption(L"value + ` ` + available");
spComboBox1->PutFilterBarPromptVisible(EXCOMBOBOXLib::FilterBarVisibleEnum(EXCOMBOBOXLib::exFilterBarVisible | EXCOMBOBOXLib::exFilterBarPromptVisible));
EXCOMBOBOXLib::IColumnPtr var_Column5 = spComboBox1->GetColumns()->GetItem(long(0));
var_Column5->PutFilterType(EXCOMBOBOXLib::exFilter);
var_Column5->PutFilter(L"Item A|Item B");
spComboBox1->GetColumns()->GetItem(long(2))->PutFilter(L"1");
spComboBox1->ApplyFilter();
spComboBox1->EndUpdate();
|
527
|
FilterBarCaption ALLUI Keyword ( sample 2, result )

// InsertItem event - Occurs after a new item has been inserted to Items collection.
void OnInsertItemComboBox1(long Item)
{
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library'
#import <ExComboBox.dll>
using namespace EXCOMBOBOXLib;
*/
EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown();
_variant_t i = spComboBox1->FormatABC(L"value + 1",spComboBox1->GetItems()->GetItemToIndex(Item),vtMissing,vtMissing);
spComboBox1->GetItems()->PutCellImage(Item,long(3),i);
}
EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown();
spComboBox1->BeginUpdate();
spComboBox1->Images(_bstr_t("gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0/oFBoVDolFo1HpFJpVLplNp1PqFRqVTq") +
"lVq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m" +
"0ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qOx3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/y" +
"NAOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA=");
EXCOMBOBOXLib::IColumnPtr var_Column = ((EXCOMBOBOXLib::IColumnPtr)(spComboBox1->GetColumns()->Add(L"Col-1")));
var_Column->PutDisplayFilterButton(VARIANT_TRUE);
var_Column->PutFilterList(EXCOMBOBOXLib::FilterListEnum(EXCOMBOBOXLib::exShowExclude | EXCOMBOBOXLib::exShowFocusItem | EXCOMBOBOXLib::exShowCheckBox | EXCOMBOBOXLib::exSortItemsAsc));
EXCOMBOBOXLib::IColumnPtr var_Column1 = ((EXCOMBOBOXLib::IColumnPtr)(spComboBox1->GetColumns()->Add(L"Col-2")));
var_Column1->PutDisplayFilterButton(VARIANT_TRUE);
var_Column1->PutFilterList(EXCOMBOBOXLib::FilterListEnum(EXCOMBOBOXLib::exShowExclude | EXCOMBOBOXLib::exShowFocusItem | EXCOMBOBOXLib::exShowCheckBox | EXCOMBOBOXLib::exSortItemsAsc));
EXCOMBOBOXLib::IColumnPtr var_Column2 = ((EXCOMBOBOXLib::IColumnPtr)(spComboBox1->GetColumns()->Add(L"Check")));
var_Column2->PutDef(EXCOMBOBOXLib::exCellHasCheckBox,VARIANT_TRUE);
var_Column2->PutDisplayFilterButton(VARIANT_TRUE);
var_Column2->PutDisplayFilterPattern(VARIANT_FALSE);
var_Column2->PutFilterType(EXCOMBOBOXLib::exCheck);
EXCOMBOBOXLib::IColumnPtr var_Column3 = ((EXCOMBOBOXLib::IColumnPtr)(spComboBox1->GetColumns()->Add(L"Image")));
var_Column3->PutDisplayFilterButton(VARIANT_TRUE);
var_Column3->PutFilterType(EXCOMBOBOXLib::exImage);
var_Column3->PutFilterList(EXCOMBOBOXLib::FilterListEnum(EXCOMBOBOXLib::exShowExclude | EXCOMBOBOXLib::exShowFocusItem | EXCOMBOBOXLib::exShowCheckBox));
EXCOMBOBOXLib::IColumnPtr var_Column4 = ((EXCOMBOBOXLib::IColumnPtr)(spComboBox1->GetColumns()->Add(L"Pos")));
var_Column4->PutAllowSizing(VARIANT_FALSE);
var_Column4->PutAllowSort(VARIANT_FALSE);
var_Column4->PutWidth(32);
var_Column4->PutFormatColumn(L"1 apos ``");
var_Column4->PutPosition(0);
EXCOMBOBOXLib::IItemsPtr var_Items = spComboBox1->GetItems();
var_Items->PutCellCaption(var_Items->AddItem("Item A"),long(1),"Sub-Item A");
long h = var_Items->AddItem("Item B");
var_Items->PutCellCaption(h,long(1),"Sub-Item B");
var_Items->PutCellState(h,long(2),1);
var_Items->PutCellCaption(var_Items->AddItem("Item C"),long(1),"Sub-Item C");
/*
Copy and paste the following directives to your header file as
it defines the namespace 'stdole' for the library: 'OLE Automation'
#import <stdole2.tlb>
*/
spComboBox1->PutFilterBarFont(IFontDispPtr(((stdole::FontPtr)(spComboBox1->GetFont()))));
spComboBox1->PutDescription(EXCOMBOBOXLib::exFilterBarAnd,_bstr_t(spComboBox1->FormatABC(L"`<fgcolor=808080> ` + value + ` </fgcolor>`",spComboBox1->GetDescription(EXCOMBOBOXLib::exFilterBarAnd),vtMissing,vtMissing)));
spComboBox1->PutFilterBarCaption(_bstr_t("(( ( allui replace `[<b>` with `<bgcolor=000000><fgcolor=FFFFFF><b> ` replace `</b>]` with ` </b></bgcolor></fgcolor>` replace ") +
"`[<s>` with `<bgcolor=C0C0C0><fgcolor=FFFFFF> ` replace `</s>]` with ` </fgcolor></bgcolor>` ) + `<r><fgcolor=808080>` + ( matc" +
"hitemcount < 0 ? ( ( len(value) ? `` : `` ) + `<r>` + abs(matchitemcount + 1) + ` result(s)` ) : (`<r><fgcolor=808080>`+ itemcou" +
"nt + ` item(s)`) )))");
spComboBox1->PutFilterBarPromptVisible(EXCOMBOBOXLib::FilterBarVisibleEnum(EXCOMBOBOXLib::exFilterBarVisible | EXCOMBOBOXLib::exFilterBarPromptVisible));
EXCOMBOBOXLib::IColumnPtr var_Column5 = spComboBox1->GetColumns()->GetItem(long(0));
var_Column5->PutFilterType(EXCOMBOBOXLib::exFilter);
var_Column5->PutFilter(L"Item A|Item B");
spComboBox1->GetColumns()->GetItem(long(2))->PutFilter(L"1");
spComboBox1->ApplyFilter();
spComboBox1->EndUpdate();
|
526
|
FilterBarCaption ALLUI Keyword ( sample 1 )

// InsertItem event - Occurs after a new item has been inserted to Items collection.
void OnInsertItemComboBox1(long Item)
{
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library'
#import <ExComboBox.dll>
using namespace EXCOMBOBOXLib;
*/
EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown();
_variant_t i = spComboBox1->FormatABC(L"value + 1",spComboBox1->GetItems()->GetItemToIndex(Item),vtMissing,vtMissing);
spComboBox1->GetItems()->PutCellImage(Item,long(3),i);
}
EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown();
spComboBox1->BeginUpdate();
spComboBox1->Images(_bstr_t("gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0/oFBoVDolFo1HpFJpVLplNp1PqFRqVTq") +
"lVq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m" +
"0ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qOx3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/y" +
"NAOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA=");
EXCOMBOBOXLib::IColumnPtr var_Column = ((EXCOMBOBOXLib::IColumnPtr)(spComboBox1->GetColumns()->Add(L"Col-1")));
var_Column->PutDisplayFilterButton(VARIANT_TRUE);
var_Column->PutFilterList(EXCOMBOBOXLib::FilterListEnum(EXCOMBOBOXLib::exShowExclude | EXCOMBOBOXLib::exShowFocusItem | EXCOMBOBOXLib::exShowCheckBox | EXCOMBOBOXLib::exSortItemsAsc));
EXCOMBOBOXLib::IColumnPtr var_Column1 = ((EXCOMBOBOXLib::IColumnPtr)(spComboBox1->GetColumns()->Add(L"Col-2")));
var_Column1->PutDisplayFilterButton(VARIANT_TRUE);
var_Column1->PutFilterList(EXCOMBOBOXLib::FilterListEnum(EXCOMBOBOXLib::exShowExclude | EXCOMBOBOXLib::exShowFocusItem | EXCOMBOBOXLib::exShowCheckBox | EXCOMBOBOXLib::exSortItemsAsc));
EXCOMBOBOXLib::IColumnPtr var_Column2 = ((EXCOMBOBOXLib::IColumnPtr)(spComboBox1->GetColumns()->Add(L"Check")));
var_Column2->PutDef(EXCOMBOBOXLib::exCellHasCheckBox,VARIANT_TRUE);
var_Column2->PutDisplayFilterButton(VARIANT_TRUE);
var_Column2->PutDisplayFilterPattern(VARIANT_FALSE);
var_Column2->PutFilterType(EXCOMBOBOXLib::exCheck);
EXCOMBOBOXLib::IColumnPtr var_Column3 = ((EXCOMBOBOXLib::IColumnPtr)(spComboBox1->GetColumns()->Add(L"Image")));
var_Column3->PutDisplayFilterButton(VARIANT_TRUE);
var_Column3->PutFilterType(EXCOMBOBOXLib::exImage);
var_Column3->PutFilterList(EXCOMBOBOXLib::FilterListEnum(EXCOMBOBOXLib::exShowExclude | EXCOMBOBOXLib::exShowFocusItem | EXCOMBOBOXLib::exShowCheckBox));
EXCOMBOBOXLib::IColumnPtr var_Column4 = ((EXCOMBOBOXLib::IColumnPtr)(spComboBox1->GetColumns()->Add(L"Pos")));
var_Column4->PutAllowSizing(VARIANT_FALSE);
var_Column4->PutAllowSort(VARIANT_FALSE);
var_Column4->PutWidth(32);
var_Column4->PutFormatColumn(L"1 apos ``");
var_Column4->PutPosition(0);
EXCOMBOBOXLib::IItemsPtr var_Items = spComboBox1->GetItems();
var_Items->PutCellCaption(var_Items->AddItem("Item A"),long(1),"Sub-Item A");
long h = var_Items->AddItem("Item B");
var_Items->PutCellCaption(h,long(1),"Sub-Item B");
var_Items->PutCellState(h,long(2),1);
var_Items->PutCellCaption(var_Items->AddItem("Item C"),long(1),"Sub-Item C");
/*
Copy and paste the following directives to your header file as
it defines the namespace 'stdole' for the library: 'OLE Automation'
#import <stdole2.tlb>
*/
spComboBox1->PutFilterBarFont(IFontDispPtr(((stdole::FontPtr)(spComboBox1->GetFont()))));
spComboBox1->PutDescription(EXCOMBOBOXLib::exFilterBarAnd,_bstr_t(spComboBox1->FormatABC(L"`<fgcolor=808080> ` + value + ` </fgcolor>`",spComboBox1->GetDescription(EXCOMBOBOXLib::exFilterBarAnd),vtMissing,vtMissing)));
spComboBox1->PutFilterBarCaption(L"allui");
spComboBox1->PutFilterBarPromptVisible(EXCOMBOBOXLib::FilterBarVisibleEnum(EXCOMBOBOXLib::exFilterBarVisible | EXCOMBOBOXLib::exFilterBarPromptVisible));
EXCOMBOBOXLib::IColumnPtr var_Column5 = spComboBox1->GetColumns()->GetItem(long(0));
var_Column5->PutFilterType(EXCOMBOBOXLib::exFilter);
var_Column5->PutFilter(L"Item A|Item B");
spComboBox1->GetColumns()->GetItem(long(2))->PutFilter(L"1");
spComboBox1->ApplyFilter();
spComboBox1->EndUpdate();
|
529
|
FilterBarCaption ALL Keyword ( sample 2, result )

// InsertItem event - Occurs after a new item has been inserted to Items collection.
void OnInsertItemComboBox1(long Item)
{
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library'
#import <ExComboBox.dll>
using namespace EXCOMBOBOXLib;
*/
EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown();
_variant_t i = spComboBox1->FormatABC(L"value + 1",spComboBox1->GetItems()->GetItemToIndex(Item),vtMissing,vtMissing);
spComboBox1->GetItems()->PutCellImage(Item,long(3),i);
}
EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown();
spComboBox1->BeginUpdate();
spComboBox1->Images(_bstr_t("gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0/oFBoVDolFo1HpFJpVLplNp1PqFRqVTq") +
"lVq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m" +
"0ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qOx3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/y" +
"NAOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA=");
EXCOMBOBOXLib::IColumnPtr var_Column = ((EXCOMBOBOXLib::IColumnPtr)(spComboBox1->GetColumns()->Add(L"Col-1")));
var_Column->PutDisplayFilterButton(VARIANT_TRUE);
var_Column->PutFilterList(EXCOMBOBOXLib::FilterListEnum(EXCOMBOBOXLib::exShowExclude | EXCOMBOBOXLib::exShowFocusItem | EXCOMBOBOXLib::exShowCheckBox | EXCOMBOBOXLib::exSortItemsAsc));
EXCOMBOBOXLib::IColumnPtr var_Column1 = ((EXCOMBOBOXLib::IColumnPtr)(spComboBox1->GetColumns()->Add(L"Col-2")));
var_Column1->PutDisplayFilterButton(VARIANT_TRUE);
var_Column1->PutFilterList(EXCOMBOBOXLib::FilterListEnum(EXCOMBOBOXLib::exShowExclude | EXCOMBOBOXLib::exShowFocusItem | EXCOMBOBOXLib::exShowCheckBox | EXCOMBOBOXLib::exSortItemsAsc));
EXCOMBOBOXLib::IColumnPtr var_Column2 = ((EXCOMBOBOXLib::IColumnPtr)(spComboBox1->GetColumns()->Add(L"Check")));
var_Column2->PutDef(EXCOMBOBOXLib::exCellHasCheckBox,VARIANT_TRUE);
var_Column2->PutDisplayFilterButton(VARIANT_TRUE);
var_Column2->PutDisplayFilterPattern(VARIANT_FALSE);
var_Column2->PutFilterType(EXCOMBOBOXLib::exCheck);
EXCOMBOBOXLib::IColumnPtr var_Column3 = ((EXCOMBOBOXLib::IColumnPtr)(spComboBox1->GetColumns()->Add(L"Image")));
var_Column3->PutDisplayFilterButton(VARIANT_TRUE);
var_Column3->PutFilterType(EXCOMBOBOXLib::exImage);
var_Column3->PutFilterList(EXCOMBOBOXLib::FilterListEnum(EXCOMBOBOXLib::exShowExclude | EXCOMBOBOXLib::exShowFocusItem | EXCOMBOBOXLib::exShowCheckBox));
EXCOMBOBOXLib::IColumnPtr var_Column4 = ((EXCOMBOBOXLib::IColumnPtr)(spComboBox1->GetColumns()->Add(L"Pos")));
var_Column4->PutAllowSizing(VARIANT_FALSE);
var_Column4->PutAllowSort(VARIANT_FALSE);
var_Column4->PutWidth(32);
var_Column4->PutFormatColumn(L"1 apos ``");
var_Column4->PutPosition(0);
EXCOMBOBOXLib::IItemsPtr var_Items = spComboBox1->GetItems();
var_Items->PutCellCaption(var_Items->AddItem("Item A"),long(1),"Sub-Item A");
long h = var_Items->AddItem("Item B");
var_Items->PutCellCaption(h,long(1),"Sub-Item B");
var_Items->PutCellState(h,long(2),1);
var_Items->PutCellCaption(var_Items->AddItem("Item C"),long(1),"Sub-Item C");
/*
Copy and paste the following directives to your header file as
it defines the namespace 'stdole' for the library: 'OLE Automation'
#import <stdole2.tlb>
*/
spComboBox1->PutFilterBarFont(IFontDispPtr(((stdole::FontPtr)(spComboBox1->GetFont()))));
spComboBox1->PutDescription(EXCOMBOBOXLib::exFilterBarAnd,_bstr_t(spComboBox1->FormatABC(L"`<fgcolor=808080> ` + value + ` </fgcolor>`",spComboBox1->GetDescription(EXCOMBOBOXLib::exFilterBarAnd),vtMissing,vtMissing)));
spComboBox1->PutFilterBarCaption(_bstr_t("(( ( all replace `[<b>` with `<bgcolor=000000><fgcolor=FFFFFF><b> ` replace `</b>]` with ` </b></bgcolor></fgcolor>` replace `[") +
"<s>` with `<bgcolor=C0C0C0><fgcolor=FFFFFF> ` replace `</s>]` with ` </fgcolor></bgcolor>` ) + `<r><fgcolor=808080>` + ( matchi" +
"temcount < 0 ? ( ( len(value) ? `` : `` ) + `<r>` + abs(matchitemcount + 1) + ` result(s)` ) : (`<r><fgcolor=808080>`+ itemcount" +
" + ` item(s)`) )))");
spComboBox1->PutFilterBarPromptVisible(EXCOMBOBOXLib::FilterBarVisibleEnum(EXCOMBOBOXLib::exFilterBarVisible | EXCOMBOBOXLib::exFilterBarPromptVisible));
EXCOMBOBOXLib::IColumnPtr var_Column5 = spComboBox1->GetColumns()->GetItem(long(0));
var_Column5->PutFilterType(EXCOMBOBOXLib::exFilter);
var_Column5->PutFilter(L"Item A|Item B");
spComboBox1->GetColumns()->GetItem(long(2))->PutFilter(L"1");
spComboBox1->ApplyFilter();
spComboBox1->EndUpdate();
|
528
|
FilterBarCaption ALL Keyword ( sample 1 )

// InsertItem event - Occurs after a new item has been inserted to Items collection.
void OnInsertItemComboBox1(long Item)
{
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library'
#import <ExComboBox.dll>
using namespace EXCOMBOBOXLib;
*/
EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown();
_variant_t i = spComboBox1->FormatABC(L"value + 1",spComboBox1->GetItems()->GetItemToIndex(Item),vtMissing,vtMissing);
spComboBox1->GetItems()->PutCellImage(Item,long(3),i);
}
EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown();
spComboBox1->BeginUpdate();
spComboBox1->Images(_bstr_t("gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0/oFBoVDolFo1HpFJpVLplNp1PqFRqVTq") +
"lVq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m" +
"0ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qOx3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/y" +
"NAOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA=");
EXCOMBOBOXLib::IColumnPtr var_Column = ((EXCOMBOBOXLib::IColumnPtr)(spComboBox1->GetColumns()->Add(L"Col-1")));
var_Column->PutDisplayFilterButton(VARIANT_TRUE);
var_Column->PutFilterList(EXCOMBOBOXLib::FilterListEnum(EXCOMBOBOXLib::exShowExclude | EXCOMBOBOXLib::exShowFocusItem | EXCOMBOBOXLib::exShowCheckBox | EXCOMBOBOXLib::exSortItemsAsc));
EXCOMBOBOXLib::IColumnPtr var_Column1 = ((EXCOMBOBOXLib::IColumnPtr)(spComboBox1->GetColumns()->Add(L"Col-2")));
var_Column1->PutDisplayFilterButton(VARIANT_TRUE);
var_Column1->PutFilterList(EXCOMBOBOXLib::FilterListEnum(EXCOMBOBOXLib::exShowExclude | EXCOMBOBOXLib::exShowFocusItem | EXCOMBOBOXLib::exShowCheckBox | EXCOMBOBOXLib::exSortItemsAsc));
EXCOMBOBOXLib::IColumnPtr var_Column2 = ((EXCOMBOBOXLib::IColumnPtr)(spComboBox1->GetColumns()->Add(L"Check")));
var_Column2->PutDef(EXCOMBOBOXLib::exCellHasCheckBox,VARIANT_TRUE);
var_Column2->PutDisplayFilterButton(VARIANT_TRUE);
var_Column2->PutDisplayFilterPattern(VARIANT_FALSE);
var_Column2->PutFilterType(EXCOMBOBOXLib::exCheck);
EXCOMBOBOXLib::IColumnPtr var_Column3 = ((EXCOMBOBOXLib::IColumnPtr)(spComboBox1->GetColumns()->Add(L"Image")));
var_Column3->PutDisplayFilterButton(VARIANT_TRUE);
var_Column3->PutFilterType(EXCOMBOBOXLib::exImage);
var_Column3->PutFilterList(EXCOMBOBOXLib::FilterListEnum(EXCOMBOBOXLib::exShowExclude | EXCOMBOBOXLib::exShowFocusItem | EXCOMBOBOXLib::exShowCheckBox));
EXCOMBOBOXLib::IColumnPtr var_Column4 = ((EXCOMBOBOXLib::IColumnPtr)(spComboBox1->GetColumns()->Add(L"Pos")));
var_Column4->PutAllowSizing(VARIANT_FALSE);
var_Column4->PutAllowSort(VARIANT_FALSE);
var_Column4->PutWidth(32);
var_Column4->PutFormatColumn(L"1 apos ``");
var_Column4->PutPosition(0);
EXCOMBOBOXLib::IItemsPtr var_Items = spComboBox1->GetItems();
var_Items->PutCellCaption(var_Items->AddItem("Item A"),long(1),"Sub-Item A");
long h = var_Items->AddItem("Item B");
var_Items->PutCellCaption(h,long(1),"Sub-Item B");
var_Items->PutCellState(h,long(2),1);
var_Items->PutCellCaption(var_Items->AddItem("Item C"),long(1),"Sub-Item C");
/*
Copy and paste the following directives to your header file as
it defines the namespace 'stdole' for the library: 'OLE Automation'
#import <stdole2.tlb>
*/
spComboBox1->PutFilterBarFont(IFontDispPtr(((stdole::FontPtr)(spComboBox1->GetFont()))));
spComboBox1->PutDescription(EXCOMBOBOXLib::exFilterBarAnd,_bstr_t(spComboBox1->FormatABC(L"`<fgcolor=808080> ` + value + ` </fgcolor>`",spComboBox1->GetDescription(EXCOMBOBOXLib::exFilterBarAnd),vtMissing,vtMissing)));
spComboBox1->PutFilterBarCaption(L"all");
spComboBox1->PutFilterBarPromptVisible(EXCOMBOBOXLib::FilterBarVisibleEnum(EXCOMBOBOXLib::exFilterBarVisible | EXCOMBOBOXLib::exFilterBarPromptVisible));
EXCOMBOBOXLib::IColumnPtr var_Column5 = spComboBox1->GetColumns()->GetItem(long(0));
var_Column5->PutFilterType(EXCOMBOBOXLib::exFilter);
var_Column5->PutFilter(L"Item A|Item B");
spComboBox1->GetColumns()->GetItem(long(2))->PutFilter(L"1");
spComboBox1->ApplyFilter();
spComboBox1->EndUpdate();
|
534
|
Export Data in HTML format

/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library'
#import <ExComboBox.dll>
using namespace EXCOMBOBOXLib;
*/
EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown();
spComboBox1->BeginUpdate();
spComboBox1->PutLinesAtRoot(EXCOMBOBOXLib::exLinesAtRoot);
spComboBox1->PutBackColorAlternate(RGB(240,240,240));
spComboBox1->PutDrawGridLines(EXCOMBOBOXLib::exAllLines);
spComboBox1->PutHeaderAppearance(EXCOMBOBOXLib::Etched);
spComboBox1->PutDescription(EXCOMBOBOXLib::exFilterBarAnd,_bstr_t(spComboBox1->FormatABC(L"`<fgcolor=808080> ` + value + ` </fgcolor>`",spComboBox1->GetDescription(EXCOMBOBOXLib::exFilterBarAnd),vtMissing,vtMissing)));
spComboBox1->PutFilterBarCaption(_bstr_t("(( ( value replace `[<b>` with `<bgcolor=000000><fgcolor=FFFFFF><b> ` replace `</b>]` with ` </b></bgcolor></fgcolor>` replace ") +
"`[<s>` with `<bgcolor=C0C0C0><fgcolor=FFFFFF> ` replace `</s>]` with ` </fgcolor></bgcolor>` ) + `<r><fgcolor=808080>` + ( matc" +
"hitemcount < 0 ? ( ( len(value) ? `` : `` ) + `<r>` + abs(matchitemcount + 1) + ` result(s)` ) : (`<r><fgcolor=808080>`+ itemcou" +
"nt + ` item(s)`) )))");
spComboBox1->PutFilterBarPromptVisible(EXCOMBOBOXLib::FilterBarVisibleEnum(EXCOMBOBOXLib::exFilterBarCompact | EXCOMBOBOXLib::exFilterBarShowCloseIfRequired | EXCOMBOBOXLib::exFilterBarSingleLine | EXCOMBOBOXLib::exFilterBarVisible | EXCOMBOBOXLib::exFilterBarPromptVisible));
spComboBox1->PutFilterBarPromptType(EXCOMBOBOXLib::exFilterPromptContainsAny);
EXCOMBOBOXLib::IConditionalFormatsPtr var_ConditionalFormats = spComboBox1->GetConditionalFormats();
var_ConditionalFormats->Add(L"%0 like `*parent*`","parent")->PutBackColor(RGB(192,192,192));
EXCOMBOBOXLib::IConditionalFormatPtr var_ConditionalFormat = var_ConditionalFormats->Add(L"%0 like `*child*`","child");
var_ConditionalFormat->PutForeColor(RGB(255,128,128));
var_ConditionalFormat->PutApplyTo(EXCOMBOBOXLib::exFormatToColumns);
EXCOMBOBOXLib::IConditionalFormatPtr var_ConditionalFormat1 = var_ConditionalFormats->Add(L"%0 like `*B*`","b");
var_ConditionalFormat1->PutForeColor(RGB(0,0,255));
var_ConditionalFormat1->PutBold(VARIANT_TRUE);
var_ConditionalFormat1->PutItalic(VARIANT_TRUE);
var_ConditionalFormat1->PutApplyTo(EXCOMBOBOXLib::exFormatToColumns);
EXCOMBOBOXLib::IColumnsPtr var_Columns = spComboBox1->GetColumns();
EXCOMBOBOXLib::IColumnPtr var_Column = ((EXCOMBOBOXLib::IColumnPtr)(var_Columns->Add(L"Value")));
var_Column->PutWidth(128);
var_Column->PutHTMLCaption(L"<b>VA</b><r>sko");
EXCOMBOBOXLib::IColumnPtr var_Column1 = ((EXCOMBOBOXLib::IColumnPtr)(var_Columns->Add(L"APos")));
var_Column1->PutFormatColumn(L"0 apos ``");
var_Column1->PutAllowSort(VARIANT_FALSE);
var_Column1->PutDef(EXCOMBOBOXLib::exCellBackColor,long(15790320));
var_Column1->PutDef(EXCOMBOBOXLib::exCellForeColor,long(8421504));
var_Column1->PutDef(EXCOMBOBOXLib::exHeaderForeColor,var_Column1->GetDef(EXCOMBOBOXLib::exCellForeColor));
var_Column1->PutPosition(0);
EXCOMBOBOXLib::IColumnPtr var_Column2 = ((EXCOMBOBOXLib::IColumnPtr)(var_Columns->Add(L"RPos")));
var_Column2->PutFormatColumn(L"0 rpos ``");
var_Column2->PutAllowSort(VARIANT_FALSE);
var_Column2->PutPosition(1);
EXCOMBOBOXLib::IColumnPtr var_Column3 = ((EXCOMBOBOXLib::IColumnPtr)(var_Columns->Add(L"Index")));
var_Column3->PutFormatColumn(L"0 index ``");
var_Column3->PutDisplayFilterButton(VARIANT_TRUE);
var_Column3->PutFilterList(EXCOMBOBOXLib::exShowCheckBox);
var_Column3->PutPosition(2);
EXCOMBOBOXLib::IColumnPtr var_Column4 = ((EXCOMBOBOXLib::IColumnPtr)(var_Columns->Add(L"Data 1")));
var_Column4->PutFormatColumn(L"0 index `A-Z`");
var_Column4->PutDef(EXCOMBOBOXLib::exCellHasCheckBox,VARIANT_TRUE);
EXCOMBOBOXLib::IColumnPtr var_Column5 = ((EXCOMBOBOXLib::IColumnPtr)(var_Columns->Add(L"Data 2")));
var_Column5->PutFormatColumn(L"0 index `AB` replace `A` with `<off -4>A</off>`");
var_Column5->PutDef(EXCOMBOBOXLib::exCellSingleLine,VARIANT_FALSE);
var_Column5->PutDef(EXCOMBOBOXLib::exCellCaptionFormat,long(1));
var_Column5->PutDef(EXCOMBOBOXLib::exCellHasRadioButton,VARIANT_TRUE);
EXCOMBOBOXLib::IColumnPtr var_Column6 = ((EXCOMBOBOXLib::IColumnPtr)(var_Columns->Add(L"Data 3")));
var_Column6->PutFormatColumn(L"0 index `CDC` replace `D` with `<b>D</b>`");
var_Column6->PutDef(EXCOMBOBOXLib::exCellCaptionFormat,long(1));
EXCOMBOBOXLib::IItemsPtr var_Items = spComboBox1->GetItems();
long h = var_Items->AddItem("ParentA");
var_Items->InsertItem(h,vtMissing,"Child A");
var_Items->InsertItem(h,vtMissing,"Child B");
var_Items->PutCellState(h,long(4),1);
var_Items->PutCellBackColor(var_Items->InsertItem(h,vtMissing,"Child C"),long(5),RGB(0,255,0));
var_Items->PutExpandItem(h,VARIANT_TRUE);
var_Items->AddItem("Item A");
h = var_Items->AddItem("ParentB");
var_Items->InsertItem(h,vtMissing,"Child 1");
var_Items->InsertItem(h,vtMissing,"Child 2");
var_Items->PutCellBackColor(var_Items->InsertItem(h,vtMissing,"Child 3"),long(5),RGB(0,255,0));
var_Items->PutCellState(h,long(5),1);
var_Items->AddItem("Item B");
var_Items->AddItem("Item C");
var_Items->AddItem("Item D");
var_Items->PutExpandItem(h,VARIANT_TRUE);
spComboBox1->EndUpdate();
_bstr_t sFile = "c:/temp/export.html";
spComboBox1->Export(sFile,"vis");
/*
Includes the definition for CreateObject function like follows:
#include <comdef.h>
IUnknownPtr CreateObject( BSTR Object )
{
IUnknownPtr spResult;
spResult.CreateInstance( Object );
return spResult;
};
*/
/*
Copy and paste the following directives to your header file as
it defines the namespace 'SHDocVw' for the library: 'Microsoft Internet Controls'
#import <ieframe.dll>
*/
SHDocVw::IWebBrowser2Ptr var_ShellBrowserWindow = ::CreateObject(L"InternetExplorer.Application");
var_ShellBrowserWindow->Navigate2(sFile,vtMissing,vtMissing,vtMissing,vtMissing);
|
533
|
Export Data in CSV format

/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library'
#import <ExComboBox.dll>
using namespace EXCOMBOBOXLib;
*/
EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown();
spComboBox1->BeginUpdate();
spComboBox1->PutLinesAtRoot(EXCOMBOBOXLib::exLinesAtRoot);
spComboBox1->PutBackColorAlternate(RGB(240,240,240));
spComboBox1->PutDrawGridLines(EXCOMBOBOXLib::exAllLines);
spComboBox1->PutHeaderAppearance(EXCOMBOBOXLib::Etched);
spComboBox1->PutDescription(EXCOMBOBOXLib::exFilterBarAnd,_bstr_t(spComboBox1->FormatABC(L"`<fgcolor=808080> ` + value + ` </fgcolor>`",spComboBox1->GetDescription(EXCOMBOBOXLib::exFilterBarAnd),vtMissing,vtMissing)));
spComboBox1->PutFilterBarCaption(_bstr_t("(( ( value replace `[<b>` with `<bgcolor=000000><fgcolor=FFFFFF><b> ` replace `</b>]` with ` </b></bgcolor></fgcolor>` replace ") +
"`[<s>` with `<bgcolor=C0C0C0><fgcolor=FFFFFF> ` replace `</s>]` with ` </fgcolor></bgcolor>` ) + `<r><fgcolor=808080>` + ( matc" +
"hitemcount < 0 ? ( ( len(value) ? `` : `` ) + `<r>` + abs(matchitemcount + 1) + ` result(s)` ) : (`<r><fgcolor=808080>`+ itemcou" +
"nt + ` item(s)`) )))");
spComboBox1->PutFilterBarPromptVisible(EXCOMBOBOXLib::FilterBarVisibleEnum(EXCOMBOBOXLib::exFilterBarCompact | EXCOMBOBOXLib::exFilterBarShowCloseIfRequired | EXCOMBOBOXLib::exFilterBarSingleLine | EXCOMBOBOXLib::exFilterBarVisible | EXCOMBOBOXLib::exFilterBarPromptVisible));
spComboBox1->PutFilterBarPromptType(EXCOMBOBOXLib::exFilterPromptContainsAny);
EXCOMBOBOXLib::IConditionalFormatsPtr var_ConditionalFormats = spComboBox1->GetConditionalFormats();
var_ConditionalFormats->Add(L"%0 like `*parent*`","parent")->PutBackColor(RGB(192,192,192));
EXCOMBOBOXLib::IConditionalFormatPtr var_ConditionalFormat = var_ConditionalFormats->Add(L"%0 like `*child*`","child");
var_ConditionalFormat->PutForeColor(RGB(255,128,128));
var_ConditionalFormat->PutApplyTo(EXCOMBOBOXLib::exFormatToColumns);
EXCOMBOBOXLib::IConditionalFormatPtr var_ConditionalFormat1 = var_ConditionalFormats->Add(L"%0 like `*B*`","b");
var_ConditionalFormat1->PutForeColor(RGB(0,0,255));
var_ConditionalFormat1->PutBold(VARIANT_TRUE);
var_ConditionalFormat1->PutItalic(VARIANT_TRUE);
var_ConditionalFormat1->PutApplyTo(EXCOMBOBOXLib::exFormatToColumns);
EXCOMBOBOXLib::IColumnsPtr var_Columns = spComboBox1->GetColumns();
EXCOMBOBOXLib::IColumnPtr var_Column = ((EXCOMBOBOXLib::IColumnPtr)(var_Columns->Add(L"Value")));
var_Column->PutWidth(128);
var_Column->PutHTMLCaption(L"<b>VA</b><r>sko");
EXCOMBOBOXLib::IColumnPtr var_Column1 = ((EXCOMBOBOXLib::IColumnPtr)(var_Columns->Add(L"APos")));
var_Column1->PutFormatColumn(L"0 apos ``");
var_Column1->PutAllowSort(VARIANT_FALSE);
var_Column1->PutDef(EXCOMBOBOXLib::exCellBackColor,long(15790320));
var_Column1->PutDef(EXCOMBOBOXLib::exCellForeColor,long(8421504));
var_Column1->PutDef(EXCOMBOBOXLib::exHeaderForeColor,var_Column1->GetDef(EXCOMBOBOXLib::exCellForeColor));
var_Column1->PutPosition(0);
EXCOMBOBOXLib::IColumnPtr var_Column2 = ((EXCOMBOBOXLib::IColumnPtr)(var_Columns->Add(L"RPos")));
var_Column2->PutFormatColumn(L"0 rpos ``");
var_Column2->PutAllowSort(VARIANT_FALSE);
var_Column2->PutPosition(1);
EXCOMBOBOXLib::IColumnPtr var_Column3 = ((EXCOMBOBOXLib::IColumnPtr)(var_Columns->Add(L"Index")));
var_Column3->PutFormatColumn(L"0 index ``");
var_Column3->PutDisplayFilterButton(VARIANT_TRUE);
var_Column3->PutFilterList(EXCOMBOBOXLib::exShowCheckBox);
var_Column3->PutPosition(2);
EXCOMBOBOXLib::IColumnPtr var_Column4 = ((EXCOMBOBOXLib::IColumnPtr)(var_Columns->Add(L"Data 1")));
var_Column4->PutFormatColumn(L"0 index `A-Z`");
var_Column4->PutDef(EXCOMBOBOXLib::exCellHasCheckBox,VARIANT_TRUE);
EXCOMBOBOXLib::IColumnPtr var_Column5 = ((EXCOMBOBOXLib::IColumnPtr)(var_Columns->Add(L"Data 2")));
var_Column5->PutFormatColumn(L"0 index `AB` replace `A` with `<off -4>A</off>`");
var_Column5->PutDef(EXCOMBOBOXLib::exCellSingleLine,VARIANT_FALSE);
var_Column5->PutDef(EXCOMBOBOXLib::exCellCaptionFormat,long(1));
var_Column5->PutDef(EXCOMBOBOXLib::exCellHasRadioButton,VARIANT_TRUE);
EXCOMBOBOXLib::IColumnPtr var_Column6 = ((EXCOMBOBOXLib::IColumnPtr)(var_Columns->Add(L"Data 3")));
var_Column6->PutFormatColumn(L"0 index `CDC` replace `D` with `<b>D</b>`");
var_Column6->PutDef(EXCOMBOBOXLib::exCellCaptionFormat,long(1));
EXCOMBOBOXLib::IItemsPtr var_Items = spComboBox1->GetItems();
long h = var_Items->AddItem("ParentA");
var_Items->InsertItem(h,vtMissing,"Child A");
var_Items->InsertItem(h,vtMissing,"Child B");
var_Items->PutCellState(h,long(4),1);
var_Items->PutCellBackColor(var_Items->InsertItem(h,vtMissing,"Child C"),long(5),RGB(0,255,0));
var_Items->PutExpandItem(h,VARIANT_TRUE);
var_Items->AddItem("Item A");
h = var_Items->AddItem("ParentB");
var_Items->InsertItem(h,vtMissing,"Child 1");
var_Items->InsertItem(h,vtMissing,"Child 2");
var_Items->PutCellBackColor(var_Items->InsertItem(h,vtMissing,"Child 3"),long(5),RGB(0,255,0));
var_Items->PutCellState(h,long(5),1);
var_Items->AddItem("Item B");
var_Items->AddItem("Item C");
var_Items->AddItem("Item D");
var_Items->PutExpandItem(h,VARIANT_TRUE);
spComboBox1->EndUpdate();
OutputDebugStringW( _bstr_t(spComboBox1->Export("","vis")) );
|
590
|
Expandable-caption

/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library'
#import <ExComboBox.dll>
using namespace EXCOMBOBOXLib;
*/
EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown();
spComboBox1->BeginUpdate();
spComboBox1->PutStyle(EXCOMBOBOXLib::Simple);
spComboBox1->PutTreeColumnIndex(-1);
spComboBox1->PutDrawGridLines(EXCOMBOBOXLib::exAllLines);
spComboBox1->PutGridLineStyle(EXCOMBOBOXLib::exGridLinesGeometric);
spComboBox1->PutBackColorAlternate(RGB(240,240,240));
spComboBox1->PutShowFocusRect(VARIANT_FALSE);
spComboBox1->PutSingleEdit(VARIANT_TRUE);
spComboBox1->PutSearchColumnIndex(1);
spComboBox1->PutAdjustSearchColumn(VARIANT_FALSE);
spComboBox1->PutHeaderVisible(VARIANT_FALSE);
spComboBox1->GetColumns()->Add(L"Default");
((EXCOMBOBOXLib::IColumnPtr)(spComboBox1->GetColumns()->Add(L"Select")))->PutVisible(VARIANT_FALSE);
EXCOMBOBOXLib::IItemsPtr var_Items = spComboBox1->GetItems();
var_Items->PutCellCaption(var_Items->AddItem("before item"),long(1),"before");
long h = var_Items->AddItem("<solidline><b>Header</b></solidline><br>Line1<r><a ;exp=show lines>+</a><br>Line2<br>Line3");
var_Items->PutCellCaptionFormat(h,long(0),EXCOMBOBOXLib::exHTML);
var_Items->PutCellSingleLine(h,long(0),EXCOMBOBOXLib::exCaptionWordWrap);
var_Items->PutCellCaption(h,long(1),"Bank Account");
var_Items->PutCellCaption(var_Items->AddItem("after item"),long(1),"after");
spComboBox1->PutSelect(long(1),"after");
spComboBox1->EndUpdate();
|
591
|
Expandable-caption

// AnchorClick event - Occurs when an anchor element is clicked.
void OnAnchorClickComboBox1(LPCTSTR AnchorID, LPCTSTR Options)
{
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library'
#import <ExComboBox.dll>
using namespace EXCOMBOBOXLib;
*/
EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown();
OutputDebugStringW( L"AnchorID" );
}
EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown();
spComboBox1->BeginUpdate();
spComboBox1->PutStyle(EXCOMBOBOXLib::Simple);
spComboBox1->PutTreeColumnIndex(-1);
spComboBox1->PutDrawGridLines(EXCOMBOBOXLib::exAllLines);
spComboBox1->PutGridLineStyle(EXCOMBOBOXLib::exGridLinesGeometric);
spComboBox1->PutBackColorAlternate(RGB(240,240,240));
spComboBox1->PutShowFocusRect(VARIANT_FALSE);
spComboBox1->PutSingleEdit(VARIANT_TRUE);
spComboBox1->PutSearchColumnIndex(1);
spComboBox1->PutAdjustSearchColumn(VARIANT_FALSE);
spComboBox1->PutHeaderVisible(VARIANT_FALSE);
spComboBox1->GetColumns()->Add(L"Default");
((EXCOMBOBOXLib::IColumnPtr)(spComboBox1->GetColumns()->Add(L"Select")))->PutVisible(VARIANT_FALSE);
EXCOMBOBOXLib::IItemsPtr var_Items = spComboBox1->GetItems();
var_Items->PutCellCaption(var_Items->AddItem("before item"),long(1),"before");
long h = var_Items->AddItem(_bstr_t("<solidline> <c><b>Bank Account</b></solidline><br>+ owner: String <r><a 1;e64=gA8ABzABvABsABpABkg8JABuABlAA+AAgAECMcTi4AMwAM4Aj") +
"MGhEGOUVAA4AAwk8plcqihwAElg0wiUlOkOiUEgQvgcFhsKhkIhUQiUUnccj0gn0jmMagUlowAMNOpEfkMNkkmlEqrctjQmAAjAA5AA2sssHcbnkdq1Ln1QtVSjQAAEB" +
"A==>▲</a><br><solidline>+ balance: Currency = 0</solidline><br>+ deposit(amount: Currency)<r><a 2;e64=gA8ABjAA+AECMwAM8DAB" +
"vABshoAOQAEAAHAAGEWjEajMGNoAMoAOgANERMgAOcHAAvAEJhcEh0Qh0Tg0CmkqMMFlUuhkxiMTisXjNCjk6EwAEYAHIAG1MjY7lUsnkwh8/nUClk5gwAAEBA==> " +
"650;</a><br>+ withdraw(amount: Currency)");
var_Items->PutCellCaptionFormat(h,long(0),EXCOMBOBOXLib::exHTML);
var_Items->PutCellSingleLine(h,long(0),EXCOMBOBOXLib::exCaptionWordWrap);
var_Items->PutCellCaption(h,long(1),"Bank Account");
var_Items->PutCellCaption(var_Items->AddItem("after item"),long(1),"after");
spComboBox1->PutSelect(long(1),"after");
spComboBox1->EndUpdate();
|
468
|
Does your control supports scrolling by touching the screen

/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library'
#import <ExComboBox.dll>
using namespace EXCOMBOBOXLib;
*/
EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown();
spComboBox1->BeginUpdate();
spComboBox1->PutColumnAutoResize(VARIANT_FALSE);
/*
Includes the definition for CreateObject function like follows:
#include <comdef.h>
IUnknownPtr CreateObject( BSTR Object )
{
IUnknownPtr spResult;
spResult.CreateInstance( Object );
return spResult;
};
*/
/*
Copy and paste the following directives to your header file as
it defines the namespace 'ADODB' for the library: 'Microsoft ActiveX Data Objects 6.1 Library'
#import <msado15.dll> rename("EOF","REOF")
*/
ADODB::_RecordsetPtr rs = ::CreateObject(L"ADOR.Recordset");
rs->Open("Orders","Provider=Microsoft.ACE.OLEDB.12.0;Data Source=C:\\Program Files\\Exontrol\\ExComboBox\\Sample\\Access\\sample.mdb",ADODB::adOpenStatic,ADODB::adLockOptimistic,0);
spComboBox1->PutDataSource(((ADODB::_RecordsetPtr)(rs)));
spComboBox1->PutScrollBySingleLine(VARIANT_TRUE);
spComboBox1->PutAutoDrag(EXCOMBOBOXLib::AutoDragEnum(EXCOMBOBOXLib::exAutoDragScrollOnShortTouch | EXCOMBOBOXLib::exAutoDragScroll));
spComboBox1->EndUpdate();
|
405
|
Does your control support RightToLeft property for RTL languages or right to left

/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library'
#import <ExComboBox.dll>
using namespace EXCOMBOBOXLib;
*/
EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown();
spComboBox1->BeginUpdate();
spComboBox1->PutLinesAtRoot(EXCOMBOBOXLib::exLinesAtRoot);
EXCOMBOBOXLib::IColumnPtr var_Column = ((EXCOMBOBOXLib::IColumnPtr)(spComboBox1->GetColumns()->Add(L"P1")));
var_Column->PutDef(EXCOMBOBOXLib::exCellHasCheckBox,VARIANT_TRUE);
var_Column->PutPartialCheck(VARIANT_TRUE);
EXCOMBOBOXLib::IItemsPtr var_Items = spComboBox1->GetItems();
long h = var_Items->AddItem("Root");
var_Items->InsertItem(h,vtMissing,"Child 1");
var_Items->InsertItem(h,vtMissing,"Child 2");
var_Items->PutExpandItem(h,VARIANT_TRUE);
spComboBox1->PutRightToLeft(VARIANT_TRUE);
spComboBox1->EndUpdate();
|
357
|
Does your control support prompt feature

/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library'
#import <ExComboBox.dll>
using namespace EXCOMBOBOXLib;
*/
EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown();
spComboBox1->Images(_bstr_t("gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0/oFBoVDolFo1HpFJpVLplNp1PqFRqVTq") +
"lVq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m" +
"0ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qOx3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/y" +
"NAOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA=");
spComboBox1->PutAutoComplete(VARIANT_FALSE);
((EXCOMBOBOXLib::IColumnPtr)(spComboBox1->GetColumns()->Add(L"Column 1")))->PutPrompt(L"<img>1</img><i><fgcolor=808080>type to search</fgcolor></i>");
spComboBox1->GetItems()->AddItem(long(0));
spComboBox1->GetItems()->AddItem(long(1));
spComboBox1->GetItems()->AddItem(long(2));
|
22
|
Does your control support partial-check ( three states ) feature for each column

/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library'
#import <ExComboBox.dll>
using namespace EXCOMBOBOXLib;
*/
EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown();
spComboBox1->PutLinesAtRoot(EXCOMBOBOXLib::exLinesAtRoot);
EXCOMBOBOXLib::IColumnPtr var_Column = ((EXCOMBOBOXLib::IColumnPtr)(spComboBox1->GetColumns()->Add(L"P1")));
var_Column->PutDef(EXCOMBOBOXLib::exCellHasCheckBox,VARIANT_TRUE);
var_Column->PutPartialCheck(VARIANT_TRUE);
EXCOMBOBOXLib::IColumnPtr var_Column1 = ((EXCOMBOBOXLib::IColumnPtr)(spComboBox1->GetColumns()->Add(L"P2")));
var_Column1->PutDef(EXCOMBOBOXLib::exCellHasCheckBox,VARIANT_TRUE);
var_Column1->PutPartialCheck(VARIANT_TRUE);
EXCOMBOBOXLib::IItemsPtr var_Items = spComboBox1->GetItems();
long h = var_Items->AddItem("Root");
var_Items->InsertItem(h,vtMissing,"Child 1");
var_Items->InsertItem(h,vtMissing,"Child 2");
var_Items->PutExpandItem(h,VARIANT_TRUE);
|
565
|
Does your control support multiple-selection

/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library'
#import <ExComboBox.dll>
using namespace EXCOMBOBOXLib;
*/
EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown();
spComboBox1->BeginUpdate();
spComboBox1->PutHeaderAppearance(EXCOMBOBOXLib::Etched);
spComboBox1->PutStyle(EXCOMBOBOXLib::DropDownList);
spComboBox1->PutSingleSel(VARIANT_FALSE);
spComboBox1->PutSingleEdit(VARIANT_TRUE);
spComboBox1->PutLabelColumnIndex(0);
EXCOMBOBOXLib::IColumnsPtr var_Columns = spComboBox1->GetColumns();
var_Columns->Add(L"Column");
var_Columns->Add(L"Sub-Column");
EXCOMBOBOXLib::IItemsPtr var_Items = spComboBox1->GetItems();
var_Items->PutCellCaption(var_Items->AddItem("Item 1"),long(1),"SubItem 1.1");
var_Items->PutCellCaption(var_Items->AddItem("Item 2"),long(1),"SubItem 2.1");
var_Items->PutCellCaption(var_Items->AddItem("Item 3"),long(1),"SubItem 3.1");
var_Items->PutCellCaption(var_Items->AddItem("Item 4"),long(1),"SubItem 4.1");
var_Items->PutSelectItem(var_Items->GetItemByIndex(1),VARIANT_TRUE);
var_Items->PutSelectItem(var_Items->GetItemByIndex(3),VARIANT_TRUE);
spComboBox1->EndUpdate();
|
352
|
Does you control support RTL languages or if there is a property RightToLeft

/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library'
#import <ExComboBox.dll>
using namespace EXCOMBOBOXLib;
*/
EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown();
spComboBox1->PutRightToLeft(VARIANT_TRUE);
spComboBox1->PutItemsAllowSizing(EXCOMBOBOXLib::exResizeItem);
spComboBox1->PutDrawGridLines(EXCOMBOBOXLib::exHLines);
spComboBox1->PutLinesAtRoot(EXCOMBOBOXLib::exLinesAtRoot);
spComboBox1->PutScrollBySingleLine(VARIANT_TRUE);
spComboBox1->PutDefaultItemHeight(64);
EXCOMBOBOXLib::IColumnPtr var_Column = ((EXCOMBOBOXLib::IColumnPtr)(spComboBox1->GetColumns()->Add(L"Column")));
var_Column->PutAlignment(EXCOMBOBOXLib::RightAlignment);
var_Column->PutHeaderAlignment(EXCOMBOBOXLib::RightAlignment);
var_Column->PutEditAlignment(EXCOMBOBOXLib::RightAlignment);
EXCOMBOBOXLib::IItemsPtr var_Items = spComboBox1->GetItems();
var_Items->AddItem("Item 1");
var_Items->PutItemHeight(var_Items->InsertItem(var_Items->AddItem("Parent"),vtMissing,"Item 2"),48);
var_Items->AddItem("Item 3");
var_Items->PutExpandItem(var_Items->GetItemByIndex(1),VARIANT_TRUE);
|
319
|
Does the tooltip support HTML format

/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library'
#import <ExComboBox.dll>
using namespace EXCOMBOBOXLib;
*/
EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown();
spComboBox1->PutToolTipDelay(1);
spComboBox1->PutToolTipWidth(364);
((EXCOMBOBOXLib::IColumnPtr)(spComboBox1->GetColumns()->Add(L"tootip")))->PutToolTip(L"<font Tahoma;11>T</font>his is an HTML <b>tooltip</b> assigned to a <fgcolor=FF0000>column</fgcolor>");
|
453
|
Does the control have the option to have a horizontal scroll to show entries which are longer than the display

/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library'
#import <ExComboBox.dll>
using namespace EXCOMBOBOXLib;
*/
EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown();
spComboBox1->BeginUpdate();
spComboBox1->PutColumnAutoResize(VARIANT_FALSE);
((EXCOMBOBOXLib::IColumnPtr)(spComboBox1->GetColumns()->Add(L"Default")))->PutWidth(512);
EXCOMBOBOXLib::IItemsPtr var_Items = spComboBox1->GetItems();
var_Items->AddItem(_bstr_t("Exontrol is devoted to create innovative user interface components for Windows applications, on COM or .NET platforms, since 19") +
"99. \"eXontrol\" comes from e(s)pecial (c)ontrol, where sc makes the X. We are a vendor not a reseller, and this is the single s" +
"ite where you can try or buy our products. If you are tired of looking for \"powerful\" components now it's time to show you rea" +
"l components. No registration required, no nag screens, no limitations, unlimited evaluation time.");
var_Items->AddItem(_bstr_t("A combo box is a commonly-used GUI tool. It is a combination of a drop-down list or list box and a single-line textbox, allowin") +
"g the user either to type a value directly into the control or choose from the list of existing options.");
spComboBox1->EndUpdate();
|
121
|
Do you have some function to retrieve all items to a safe array

/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library'
#import <ExComboBox.dll>
using namespace EXCOMBOBOXLib;
*/
EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown();
spComboBox1->GetColumns()->Add(L"Column");
spComboBox1->GetItems()->AddItem(long(0));
spComboBox1->PutItems(spComboBox1->GetItems(long(0)),vtMissing);
spComboBox1->GetItems()->AddItem(long(1));
spComboBox1->PutItems(spComboBox1->GetItems(long(0)),vtMissing);
spComboBox1->GetItems()->AddItem(long(2));
spComboBox1->PutItems(spComboBox1->GetItems(long(0)),vtMissing);
spComboBox1->GetItems()->AddItem(long(3));
|
122
|
Do you have some function to load data from a safe array

/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library'
#import <ExComboBox.dll>
using namespace EXCOMBOBOXLib;
*/
EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown();
spComboBox1->GetColumns()->Add(L"Column");
spComboBox1->GetItems()->AddItem(long(0));
spComboBox1->PutItems(spComboBox1->GetItems(long(0)),vtMissing);
|
548
|
Do do I get the DAO version I have installed
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library'
#import <ExComboBox.dll>
using namespace EXCOMBOBOXLib;
*/
EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown();
/*
Includes the definition for CreateObject function like follows:
#include <comdef.h>
IUnknownPtr CreateObject( BSTR Object )
{
IUnknownPtr spResult;
spResult.CreateInstance( Object );
return spResult;
};
*/
OutputDebugStringW( ::CreateObject(L"DAO.DBEngine.35")->GetVersion()->GetVersion() );
OutputDebugStringW( ::CreateObject(L"DAO.DBEngine.36")->GetVersion()->GetVersion() );
OutputDebugStringW( ::CreateObject(L"DAO.DBEngine.120")->GetVersion()->GetVersion() );
|
546
|
Do do I get the ADO version I have installed
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library'
#import <ExComboBox.dll>
using namespace EXCOMBOBOXLib;
*/
EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown();
/*
Includes the definition for CreateObject function like follows:
#include <comdef.h>
IUnknownPtr CreateObject( BSTR Object )
{
IUnknownPtr spResult;
spResult.CreateInstance( Object );
return spResult;
};
*/
OutputDebugStringW( L"ADO Version:" );
OutputDebugStringW( ::CreateObject(L"ADODB.Connection")->GetVersion()->GetVersion() );
|
605
|
Displays the root item's index and value/caption using expressions

/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library'
#import <ExComboBox.dll>
using namespace EXCOMBOBOXLib;
*/
EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown();
spComboBox1->BeginUpdate();
spComboBox1->PutHeaderAppearance(EXCOMBOBOXLib::Etched);
spComboBox1->PutHeaderHeight(24);
spComboBox1->PutLinesAtRoot(EXCOMBOBOXLib::exLinesAtRoot);
spComboBox1->PutAutoDrag(EXCOMBOBOXLib::exAutoDragPositionAny);
spComboBox1->PutSingleSel(VARIANT_FALSE);
spComboBox1->PutDrawGridLines(EXCOMBOBOXLib::exRowLines);
spComboBox1->PutGridLineStyle(EXCOMBOBOXLib::exGridLinesSolid);
spComboBox1->GetConditionalFormats()->Add(L"%CC0 and %CX0",vtMissing)->PutBold(VARIANT_TRUE);
EXCOMBOBOXLib::IConditionalFormatPtr var_ConditionalFormat = spComboBox1->GetConditionalFormats()->Add(L"1",vtMissing);
var_ConditionalFormat->PutBold(VARIANT_TRUE);
var_ConditionalFormat->PutApplyTo(EXCOMBOBOXLib::FormatApplyToEnum(0x2));
EXCOMBOBOXLib::IColumnPtr var_Column = ((EXCOMBOBOXLib::IColumnPtr)(spComboBox1->GetColumns()->Add(L"Description")));
var_Column->PutDef(EXCOMBOBOXLib::exCellHasCheckBox,VARIANT_TRUE);
var_Column->PutPartialCheck(VARIANT_TRUE);
EXCOMBOBOXLib::IColumnPtr var_Column1 = ((EXCOMBOBOXLib::IColumnPtr)(spComboBox1->GetColumns()->Add(L"Index")));
var_Column1->PutFormatColumn(L"1 index ``");
var_Column1->PutPosition(0);
var_Column1->PutWidth(16);
EXCOMBOBOXLib::IColumnPtr var_Column2 = ((EXCOMBOBOXLib::IColumnPtr)(spComboBox1->GetColumns()->Add(L"Root-Index")));
var_Column2->PutFormatColumn(L"root(1 index ``)");
var_Column2->PutPosition(1);
var_Column2->PutWidth(32);
var_Column2->PutDef(EXCOMBOBOXLib::exCellBackColor,long(15790320));
EXCOMBOBOXLib::IColumnPtr var_Column3 = ((EXCOMBOBOXLib::IColumnPtr)(spComboBox1->GetColumns()->Add(L"Root-Value")));
var_Column3->PutFormatColumn(L"root(%0)");
var_Column3->PutPosition(2);
var_Column3->PutWidth(32);
var_Column3->PutDef(EXCOMBOBOXLib::exCellBackColor,long(15790320));
EXCOMBOBOXLib::IItemsPtr var_Items = spComboBox1->GetItems();
long h = var_Items->AddItem("Root 1");
var_Items->InsertItem(h,vtMissing,"Child 1");
var_Items->InsertItem(var_Items->InsertItem(h,vtMissing,"Child 2"),vtMissing,"Sub-Child 2");
var_Items->PutCellState(var_Items->InsertItem(h,vtMissing,"Child 3"),long(0),1);
var_Items->PutExpandItem(h,VARIANT_TRUE);
h = var_Items->AddItem("Root 2");
var_Items->InsertItem(h,vtMissing,"Child 1");
var_Items->InsertItem(h,vtMissing,"Child 2");
var_Items->InsertItem(h,vtMissing,"Child 3");
var_Items->PutExpandItem(h,VARIANT_TRUE);
spComboBox1->EndUpdate();
|
604
|
Displays the parent item's index and caption/value using expressions

/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library'
#import <ExComboBox.dll>
using namespace EXCOMBOBOXLib;
*/
EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown();
spComboBox1->BeginUpdate();
spComboBox1->PutHeaderAppearance(EXCOMBOBOXLib::Etched);
spComboBox1->PutHeaderHeight(24);
spComboBox1->PutLinesAtRoot(EXCOMBOBOXLib::exLinesAtRoot);
spComboBox1->PutAutoDrag(EXCOMBOBOXLib::exAutoDragPositionAny);
spComboBox1->PutSingleSel(VARIANT_FALSE);
spComboBox1->PutDrawGridLines(EXCOMBOBOXLib::exRowLines);
spComboBox1->PutGridLineStyle(EXCOMBOBOXLib::exGridLinesSolid);
spComboBox1->GetConditionalFormats()->Add(L"%CC0 and %CX0",vtMissing)->PutBold(VARIANT_TRUE);
EXCOMBOBOXLib::IConditionalFormatPtr var_ConditionalFormat = spComboBox1->GetConditionalFormats()->Add(L"1",vtMissing);
var_ConditionalFormat->PutBold(VARIANT_TRUE);
var_ConditionalFormat->PutApplyTo(EXCOMBOBOXLib::FormatApplyToEnum(0x2));
EXCOMBOBOXLib::IColumnPtr var_Column = ((EXCOMBOBOXLib::IColumnPtr)(spComboBox1->GetColumns()->Add(L"Description")));
var_Column->PutDef(EXCOMBOBOXLib::exCellHasCheckBox,VARIANT_TRUE);
var_Column->PutPartialCheck(VARIANT_TRUE);
EXCOMBOBOXLib::IColumnPtr var_Column1 = ((EXCOMBOBOXLib::IColumnPtr)(spComboBox1->GetColumns()->Add(L"Index")));
var_Column1->PutFormatColumn(L"1 index `I`");
var_Column1->PutPosition(0);
var_Column1->PutWidth(16);
EXCOMBOBOXLib::IColumnPtr var_Column2 = ((EXCOMBOBOXLib::IColumnPtr)(spComboBox1->GetColumns()->Add(L"Parent-Index")));
var_Column2->PutFormatColumn(L"parent(1 index `I`)");
var_Column2->PutPosition(1);
var_Column2->PutWidth(32);
var_Column2->PutDef(EXCOMBOBOXLib::exCellBackColor,long(15790320));
EXCOMBOBOXLib::IColumnPtr var_Column3 = ((EXCOMBOBOXLib::IColumnPtr)(spComboBox1->GetColumns()->Add(L"Parent-Value")));
var_Column3->PutFormatColumn(L"parent(%0)");
var_Column3->PutPosition(2);
var_Column3->PutWidth(32);
var_Column3->PutDef(EXCOMBOBOXLib::exCellBackColor,long(15790320));
EXCOMBOBOXLib::IItemsPtr var_Items = spComboBox1->GetItems();
long h = var_Items->AddItem("Root 1");
var_Items->InsertItem(h,vtMissing,"Child 1");
var_Items->InsertItem(var_Items->InsertItem(h,vtMissing,"Child 2"),vtMissing,"Sub-Child 2");
var_Items->PutCellState(var_Items->InsertItem(h,vtMissing,"Child 3"),long(0),1);
var_Items->PutExpandItem(h,VARIANT_TRUE);
h = var_Items->AddItem("Root 2");
var_Items->InsertItem(h,vtMissing,"Child 1");
var_Items->InsertItem(h,vtMissing,"Child 2");
var_Items->InsertItem(h,vtMissing,"Child 3");
var_Items->PutExpandItem(h,VARIANT_TRUE);
spComboBox1->EndUpdate();
|
601
|
Displays a glitch funnel for drop-down filter buttons (empty or active)

/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library'
#import <ExComboBox.dll>
using namespace EXCOMBOBOXLib;
*/
EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown();
spComboBox1->BeginUpdate();
EXCOMBOBOXLib::IAppearancePtr var_Appearance = spComboBox1->GetVisualAppearance();
var_Appearance->PutRenderType(-1);
var_Appearance->Add(1,_bstr_t("gBFLBCJwBAEHhEJAAEhABa8IQAAYAQGKIYBkAKBQAGaAoDDUNQxQwAAxwfBMKgBBCLIxhEYobgmGIXRpFMbxCKQahLEiTIhGUYJHgmK4tRiAUgxVDkBxrECZYqjcBZO") +
"iwLQ2TxDM7DNKUCBnIoABhGOaYDh+IQNQjUFKwTRFGRxK4EIRKAyTDLQdRyGSMMbjdQpBCbMiMRqhESKRq2UwYRYCFS1NalaztO6BUAvK67YrWez/YBfF+SfwGeqDYRe" +
"WAPfgWERnQrGMLxbD8KwZAKTRjkGJ4XhuB41TbQMqufL9ByXHKSSDpGjaXjeO5VVjYNAvS69UzXNq3bhtQAOXCMEwCgI=");
var_Appearance->Add(2,"CP:1 -2 0 0 0");
spComboBox1->PutDrawGridLines(EXCOMBOBOXLib::exAllLines);
spComboBox1->PutGridLineStyle(EXCOMBOBOXLib::exGridLinesGeometric);
spComboBox1->PutShowFocusRect(VARIANT_FALSE);
spComboBox1->PutBackground(EXCOMBOBOXLib::exHeaderFilterBarButton,0x2000000);
spComboBox1->PutBackground(EXCOMBOBOXLib::exHeaderFilterBarActive,0x2000001);
spComboBox1->PutHeaderAppearance(EXCOMBOBOXLib::Etched);
spComboBox1->PutHeaderHeight(24);
spComboBox1->PutHeaderVisible(VARIANT_TRUE);
EXCOMBOBOXLib::IColumnPtr var_Column = ((EXCOMBOBOXLib::IColumnPtr)(spComboBox1->GetColumns()->Add(L"1st col")));
var_Column->PutDisplayFilterButton(VARIANT_TRUE);
var_Column->PutDisplayFilterPattern(VARIANT_FALSE);
var_Column->PutFilter(L"Item B");
var_Column->PutFilterType(EXCOMBOBOXLib::exFilter);
spComboBox1->GetColumns()->Add(L"2nd col");
EXCOMBOBOXLib::IItemsPtr var_Items = spComboBox1->GetItems();
var_Items->AddItem("Item A");
var_Items->AddItem("Item B");
var_Items->AddItem("Item C");
spComboBox1->ApplyFilter();
spComboBox1->EndUpdate();
|
587
|
Display a custom tooltip
// MouseMove event - Occurs when the user moves the mouse.
void OnMouseMoveComboBox1(short Button, short Shift, long X, long Y)
{
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library'
#import <ExComboBox.dll>
using namespace EXCOMBOBOXLib;
*/
EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown();
spComboBox1->ShowToolTip(_bstr_t(spComboBox1->GetColumnFromPoint(-1,-1)),"",vtMissing,"+8","+8");
}
|
592
|
Disable temporarily the column's sort, resize and drag and drop

/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library'
#import <ExComboBox.dll>
using namespace EXCOMBOBOXLib;
*/
EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown();
spComboBox1->BeginUpdate();
spComboBox1->PutSortBarVisible(VARIANT_TRUE);
spComboBox1->PutSortBarCaption(L"<fgcolor 808080><c>the header and the sort-bar are disabled (no drag and drop is allowed)");
spComboBox1->PutHeaderEnabled(VARIANT_FALSE);
spComboBox1->PutHeaderAppearance(EXCOMBOBOXLib::Etched);
((EXCOMBOBOXLib::IColumnPtr)(spComboBox1->GetColumns()->Add(L"Index")))->PutFormatColumn(L"1 index ``");
((EXCOMBOBOXLib::IColumnPtr)(spComboBox1->GetColumns()->Add(L"Pos")))->PutFormatColumn(L"1 apos ``");
spComboBox1->GetColumns()->Add(L"Edit");
spComboBox1->PutGridLineStyle(EXCOMBOBOXLib::exGridLinesGeometric);
spComboBox1->PutDrawGridLines(EXCOMBOBOXLib::exVLines);
spComboBox1->EndUpdate();
|
588
|
Disable hover-all feature (Windows 11 or greater)
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library'
#import <ExComboBox.dll>
using namespace EXCOMBOBOXLib;
*/
EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown();
spComboBox1->PutBackground(EXCOMBOBOXLib::exScrollHoverAll,RGB(1,0,0));
|
602
|
Defines the symbol used to indicate repeated captions, providing a clear visual cue for identical entries (space)

/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library'
#import <ExComboBox.dll>
using namespace EXCOMBOBOXLib;
*/
EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown();
spComboBox1->BeginUpdate();
spComboBox1->PutHeaderAppearance(EXCOMBOBOXLib::Etched);
spComboBox1->PutHeaderHeight(24);
spComboBox1->PutDrawGridLines(EXCOMBOBOXLib::exRowLines);
((EXCOMBOBOXLib::IColumnPtr)(spComboBox1->GetColumns()->Add(L"Country")))->PutShowIdem(L" ");
EXCOMBOBOXLib::IItemsPtr var_Items = spComboBox1->GetItems();
var_Items->AddItem("Spain");
var_Items->AddItem("Spain");
var_Items->AddItem("Spain");
var_Items->AddItem("Spain");
var_Items->AddItem("Germany");
var_Items->AddItem("Germany");
var_Items->AddItem("Germany");
var_Items->AddItem("Germany");
spComboBox1->EndUpdate();
|
603
|
Defines the symbol used to indicate repeated captions, providing a clear visual cue for identical entries (ditto mark)

/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library'
#import <ExComboBox.dll>
using namespace EXCOMBOBOXLib;
*/
EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown();
spComboBox1->BeginUpdate();
spComboBox1->PutHeaderAppearance(EXCOMBOBOXLib::Etched);
spComboBox1->PutHeaderHeight(24);
spComboBox1->PutDrawGridLines(EXCOMBOBOXLib::exRowLines);
((EXCOMBOBOXLib::IColumnPtr)(spComboBox1->GetColumns()->Add(L"Country")))->PutShowIdem(L"<fgcolor gray>〃");
EXCOMBOBOXLib::IItemsPtr var_Items = spComboBox1->GetItems();
var_Items->AddItem("Spain");
var_Items->AddItem("Spain");
var_Items->AddItem("Spain");
var_Items->AddItem("Spain");
var_Items->AddItem("Germany");
var_Items->AddItem("Germany");
var_Items->AddItem("Germany");
var_Items->AddItem("Germany");
spComboBox1->EndUpdate();
|
544
|
DAO, MDB, 120

/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library'
#import <ExComboBox.dll>
using namespace EXCOMBOBOXLib;
*/
EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown();
spComboBox1->BeginUpdate();
spComboBox1->PutColumnAutoResize(VARIANT_FALSE);
/*
Includes the definition for CreateObject function like follows:
#include <comdef.h>
IUnknownPtr CreateObject( BSTR Object )
{
IUnknownPtr spResult;
spResult.CreateInstance( Object );
return spResult;
};
*/
/*
Copy and paste the following directives to your header file as
it defines the namespace 'DAO' for the library: 'Microsoft Office 15.0 Access database engine Object Library'
#import <ACEDAO.DLL>
*/
DAO::_DBEnginePtr var_PrivDBEngine = ::CreateObject(L"DAO.DBEngine.120");
DAO::Recordset2Ptr rs = ((DAO::Recordset2Ptr)(var_PrivDBEngine->OpenDatabase(L"C:\\Program Files\\Exontrol\\ExComboBox\\Sample\\Access\\sample.mdb",vtMissing,vtMissing,vtMissing)->OpenRecordset(L"Orders",vtMissing,vtMissing,vtMissing)));
spComboBox1->PutDataSource(((DAO::Recordset2Ptr)(rs)));
spComboBox1->PutValue(long(10248));
spComboBox1->EndUpdate();
|
543
|
DAO, MDB

/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library'
#import <ExComboBox.dll>
using namespace EXCOMBOBOXLib;
*/
EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown();
spComboBox1->BeginUpdate();
spComboBox1->PutColumnAutoResize(VARIANT_FALSE);
/*
Includes the definition for CreateObject function like follows:
#include <comdef.h>
IUnknownPtr CreateObject( BSTR Object )
{
IUnknownPtr spResult;
spResult.CreateInstance( Object );
return spResult;
};
*/
/*
Copy and paste the following directives to your header file as
it defines the namespace 'DAO' for the library: 'Microsoft DAO 3.6 Object Library'
#import <dao360.dll>
*/
DAO::_DBEnginePtr var_PrivDBEngine = ::CreateObject(L"DAO.DBEngine.36");
DAO::RecordsetPtr rs = var_PrivDBEngine->OpenDatabase(L"C:\\Program Files\\Exontrol\\ExComboBox\\Sample\\Access\\sample.mdb",vtMissing,vtMissing,vtMissing)->OpenRecordset(L"Orders",vtMissing,vtMissing,vtMissing);
spComboBox1->PutDataSource(((DAO::RecordsetPtr)(rs)));
spComboBox1->PutValue(long(10248));
spComboBox1->EndUpdate();
|
545
|
DAO, ACCDB, 120

/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library'
#import <ExComboBox.dll>
using namespace EXCOMBOBOXLib;
*/
EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown();
spComboBox1->BeginUpdate();
spComboBox1->PutColumnAutoResize(VARIANT_FALSE);
/*
Includes the definition for CreateObject function like follows:
#include <comdef.h>
IUnknownPtr CreateObject( BSTR Object )
{
IUnknownPtr spResult;
spResult.CreateInstance( Object );
return spResult;
};
*/
/*
Copy and paste the following directives to your header file as
it defines the namespace 'DAO' for the library: 'Microsoft Office 15.0 Access database engine Object Library'
#import <ACEDAO.DLL>
*/
DAO::_DBEnginePtr var_PrivDBEngine = ::CreateObject(L"DAO.DBEngine.120");
DAO::Recordset2Ptr rs = ((DAO::Recordset2Ptr)(var_PrivDBEngine->OpenDatabase(L"C:\\Program Files\\Exontrol\\ExComboBox\\Sample\\Access\\sample.accdb",vtMissing,vtMissing,vtMissing)->OpenRecordset(L"Orders",vtMissing,vtMissing,vtMissing)));
spComboBox1->PutDataSource(((DAO::Recordset2Ptr)(rs)));
spComboBox1->PutValue(long(10248));
spComboBox1->EndUpdate();
|
582
|
Change the clear-button appearance

/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library'
#import <ExComboBox.dll>
using namespace EXCOMBOBOXLib;
*/
EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown();
spComboBox1->BeginUpdate();
EXCOMBOBOXLib::IAppearancePtr var_Appearance = spComboBox1->GetVisualAppearance();
var_Appearance->Add(1,"XP:Window 19 1");
var_Appearance->Add(2,"XP:Window 19 3");
spComboBox1->PutBackground(EXCOMBOBOXLib::exClearButtonUp,0x1000000);
spComboBox1->PutBackground(EXCOMBOBOXLib::exClearButtonDown,0x2000000);
spComboBox1->PutStyle(EXCOMBOBOXLib::DropDownList);
spComboBox1->PutHeaderVisible(VARIANT_FALSE);
spComboBox1->PutIntegralHeight(VARIANT_TRUE);
spComboBox1->PutShowClearButton(1);
spComboBox1->GetColumns()->Add(L"Column");
EXCOMBOBOXLib::IItemsPtr var_Items = spComboBox1->GetItems();
var_Items->AddItem("Zero");
var_Items->AddItem("One");
var_Items->AddItem("Two");
spComboBox1->PutSelect(long(0),"Zero");
spComboBox1->EndUpdate();
|
150
|
Can I use your EBN files to change the visual appearance for radio buttons

/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library'
#import <ExComboBox.dll>
using namespace EXCOMBOBOXLib;
*/
EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown();
spComboBox1->GetVisualAppearance()->Add(1,"c:\\exontrol\\images\\normal.ebn");
spComboBox1->GetVisualAppearance()->Add(2,"c:\\exontrol\\images\\pushed.ebn");
spComboBox1->PutRadioImage(VARIANT_FALSE,16777216);
spComboBox1->PutRadioImage(VARIANT_TRUE,33554432);
((EXCOMBOBOXLib::IColumnPtr)(spComboBox1->GetColumns()->Add(L"Radio")))->PutDef(EXCOMBOBOXLib::exCellHasRadioButton,VARIANT_TRUE);
EXCOMBOBOXLib::IItemsPtr var_Items = spComboBox1->GetItems();
var_Items->AddItem("Radio 1");
var_Items->PutCellState(var_Items->AddItem("Radio 2"),long(0),1);
var_Items->AddItem("Radio 3");
|
149
|
Can I use your EBN files to change the visual appearance for checkbox cells

/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library'
#import <ExComboBox.dll>
using namespace EXCOMBOBOXLib;
*/
EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown();
spComboBox1->GetVisualAppearance()->Add(1,"c:\\exontrol\\images\\normal.ebn");
spComboBox1->GetVisualAppearance()->Add(2,"c:\\exontrol\\images\\pushed.ebn");
spComboBox1->PutCheckImage(EXCOMBOBOXLib::Unchecked,16777216);
spComboBox1->PutCheckImage(EXCOMBOBOXLib::Checked,33554432);
((EXCOMBOBOXLib::IColumnPtr)(spComboBox1->GetColumns()->Add(L"Check")))->PutDef(EXCOMBOBOXLib::exCellHasCheckBox,VARIANT_TRUE);
EXCOMBOBOXLib::IItemsPtr var_Items = spComboBox1->GetItems();
var_Items->AddItem("Check 1");
var_Items->PutCellState(var_Items->AddItem("Check 2"),long(0),1);
|
151
|
Can I use your EBN files to change the visual appearance for +/- expand - collapse buttons

/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library'
#import <ExComboBox.dll>
using namespace EXCOMBOBOXLib;
*/
EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown();
spComboBox1->GetVisualAppearance()->Add(1,"c:\\exontrol\\images\\normal.ebn");
spComboBox1->GetVisualAppearance()->Add(2,"c:\\exontrol\\images\\pushed.ebn");
spComboBox1->PutLinesAtRoot(EXCOMBOBOXLib::exGroupLinesAtRoot);
spComboBox1->PutHasButtons(EXCOMBOBOXLib::exCustom);
spComboBox1->PutHasButtonsCustom(VARIANT_FALSE,16777216);
spComboBox1->PutHasButtonsCustom(VARIANT_TRUE,33554432);
spComboBox1->GetColumns()->Add(L"Column");
EXCOMBOBOXLib::IItemsPtr var_Items = spComboBox1->GetItems();
long h = var_Items->AddItem("Root 1");
var_Items->InsertItem(h,vtMissing,"Child 1");
var_Items->InsertItem(h,vtMissing,"Child 2");
var_Items->PutExpandItem(h,VARIANT_TRUE);
h = var_Items->AddItem("Root 2");
var_Items->InsertItem(h,vtMissing,"Child");
|
52
|
Can I use my own icons for the +/- ( expand/collapse ) buttons

/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library'
#import <ExComboBox.dll>
using namespace EXCOMBOBOXLib;
*/
EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown();
spComboBox1->Images(_bstr_t("gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0/oFBoVDolFo1HpFJpVLplNp1PqFRqVTq") +
"lVq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m" +
"0ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qOx3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/y" +
"NAOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA=");
spComboBox1->PutLinesAtRoot(EXCOMBOBOXLib::exGroupLinesAtRoot);
spComboBox1->PutHasButtons(EXCOMBOBOXLib::exCustom);
spComboBox1->PutHasButtonsCustom(VARIANT_FALSE,1);
spComboBox1->PutHasButtonsCustom(VARIANT_TRUE,2);
spComboBox1->GetColumns()->Add(L"Column");
EXCOMBOBOXLib::IItemsPtr var_Items = spComboBox1->GetItems();
long h = var_Items->AddItem("Root 1");
var_Items->InsertItem(h,vtMissing,"Child 1");
var_Items->InsertItem(h,vtMissing,"Child 2");
var_Items->PutExpandItem(h,VARIANT_TRUE);
h = var_Items->AddItem("Root 2");
var_Items->InsertItem(h,vtMissing,"Child");
|
428
|
Can I specify an item to be a separator

/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library'
#import <ExComboBox.dll>
using namespace EXCOMBOBOXLib;
*/
EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown();
spComboBox1->BeginUpdate();
spComboBox1->PutTreeColumnIndex(-1);
spComboBox1->PutSortOnClick(EXCOMBOBOXLib::exNoSort);
spComboBox1->GetColumns()->Add(L"Numbers");
EXCOMBOBOXLib::IItemsPtr var_Items = spComboBox1->GetItems();
var_Items->AddItem(long(1));
var_Items->AddItem(long(2));
long h = var_Items->AddItem("separator");
var_Items->PutSelectableItem(h,VARIANT_FALSE);
var_Items->PutItemDivider(h,0);
var_Items->PutItemDividerLineAlignment(h,EXCOMBOBOXLib::DividerCenter);
var_Items->PutItemDividerLine(h,EXCOMBOBOXLib::ThinLine);
var_Items->PutCellHAlignment(h,long(0),EXCOMBOBOXLib::CenterAlignment);
var_Items->AddItem(long(3));
var_Items->AddItem(long(4));
spComboBox1->EndUpdate();
|
430
|
Can I specify a terminal item so it will mark the end of childs

/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library'
#import <ExComboBox.dll>
using namespace EXCOMBOBOXLib;
*/
EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown();
spComboBox1->BeginUpdate();
spComboBox1->PutScrollBySingleLine(VARIANT_TRUE);
spComboBox1->GetColumns()->Add(L"P1");
EXCOMBOBOXLib::IItemsPtr var_Items = spComboBox1->GetItems();
long h = var_Items->AddItem("Root 1");
var_Items->InsertItem(h,vtMissing,"Child 1");
var_Items->InsertItem(h,vtMissing,"Child 2");
var_Items->PutExpandItem(h,VARIANT_TRUE);
h = var_Items->InsertItem(h,"","");
var_Items->PutItemDivider(h,0);
var_Items->PutItemDividerLineAlignment(h,EXCOMBOBOXLib::DividerCenter);
var_Items->PutItemHeight(h,2);
var_Items->PutSelectableItem(h,VARIANT_FALSE);
var_Items->PutSortableItem(h,VARIANT_FALSE);
h = var_Items->AddItem("Root 2");
var_Items->InsertItem(h,vtMissing,"Child 1");
var_Items->InsertItem(h,vtMissing,"Child 2");
var_Items->PutExpandItem(h,VARIANT_TRUE);
h = var_Items->InsertItem(h,"","");
var_Items->PutItemDivider(h,0);
var_Items->PutItemDividerLineAlignment(h,EXCOMBOBOXLib::DividerCenter);
var_Items->PutItemHeight(h,2);
var_Items->PutSelectableItem(h,VARIANT_FALSE);
var_Items->PutSortableItem(h,VARIANT_FALSE);
spComboBox1->EndUpdate();
|
556
|
Can I sort the column by image

/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library'
#import <ExComboBox.dll>
using namespace EXCOMBOBOXLib;
*/
EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown();
spComboBox1->BeginUpdate();
spComboBox1->Images(_bstr_t("gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0/oFBoVDolFo1HpFJpVLplNp1PqFRqVTq") +
"lVq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m" +
"0ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qOx3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/y" +
"NAOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA=");
EXCOMBOBOXLib::IColumnPtr var_Column = ((EXCOMBOBOXLib::IColumnPtr)(spComboBox1->GetColumns()->Add(L"Image")));
var_Column->PutSortType(EXCOMBOBOXLib::exSortByImage);
EXCOMBOBOXLib::IItemsPtr var_Items = spComboBox1->GetItems();
var_Items->PutCellImage(var_Items->AddItem(vtMissing),long(0),3);
var_Items->AddItem(vtMissing);
var_Items->PutCellImage(var_Items->AddItem(vtMissing),long(0),1);
var_Items->PutCellImage(var_Items->AddItem(vtMissing),long(0),2);
spComboBox1->GetColumns()->GetItem(long(0))->PutSortOrder(EXCOMBOBOXLib::SortAscending);
spComboBox1->EndUpdate();
|
557
|
Can I sort the column by check-state

/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library'
#import <ExComboBox.dll>
using namespace EXCOMBOBOXLib;
*/
EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown();
spComboBox1->BeginUpdate();
EXCOMBOBOXLib::IColumnPtr var_Column = ((EXCOMBOBOXLib::IColumnPtr)(spComboBox1->GetColumns()->Add(L"Check")));
var_Column->PutDef(EXCOMBOBOXLib::exCellHasCheckBox,VARIANT_TRUE);
var_Column->PutSortType(EXCOMBOBOXLib::exSortByState);
EXCOMBOBOXLib::IItemsPtr var_Items = spComboBox1->GetItems();
var_Items->AddItem(vtMissing);
var_Items->PutCellState(var_Items->AddItem(vtMissing),long(0),1);
var_Items->PutCellState(var_Items->AddItem(vtMissing),long(0),1);
var_Items->AddItem(vtMissing);
spComboBox1->GetColumns()->GetItem(long(0))->PutSortOrder(EXCOMBOBOXLib::SortAscending);
spComboBox1->EndUpdate();
|
599
|
Can I set a filter that automatically adds a * before and after the word, so the user can just search for 'cat' and it becomes '*cat*' automatically
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library'
#import <ExComboBox.dll>
using namespace EXCOMBOBOXLib;
*/
EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown();
spComboBox1->BeginUpdate();
spComboBox1->PutHeaderAppearance(EXCOMBOBOXLib::Etched);
spComboBox1->PutHeaderHeight(24);
spComboBox1->PutLinesAtRoot(EXCOMBOBOXLib::exLinesAtRoot);
EXCOMBOBOXLib::IColumnPtr var_Column = ((EXCOMBOBOXLib::IColumnPtr)(spComboBox1->GetColumns()->Add(L"Items")));
var_Column->PutDisplayFilterButton(VARIANT_TRUE);
var_Column->PutDisplayFilterPattern(VARIANT_TRUE);
var_Column->PutDef(EXCOMBOBOXLib::exFilterPatternTemplate,"*<%filter%>*");
var_Column->PutFilterType(EXCOMBOBOXLib::exPattern);
var_Column->PutFilter(L"1");
EXCOMBOBOXLib::IItemsPtr var_Items = spComboBox1->GetItems();
long h = var_Items->AddItem("Root 1");
var_Items->InsertItem(h,vtMissing,"Child 1");
var_Items->InsertItem(h,vtMissing,"Child 2");
var_Items->PutExpandItem(h,VARIANT_TRUE);
h = var_Items->AddItem("Root 2");
var_Items->InsertItem(h,vtMissing,"Child 1");
var_Items->InsertItem(h,vtMissing,"Child 2");
spComboBox1->ApplyFilter();
spComboBox1->EndUpdate();
|
311
|
Can I remove the line being displayed by a divider item

/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library'
#import <ExComboBox.dll>
using namespace EXCOMBOBOXLib;
*/
EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown();
spComboBox1->PutMarkSearchColumn(VARIANT_FALSE);
spComboBox1->PutTreeColumnIndex(-1);
spComboBox1->GetColumns()->Add(L"C1");
spComboBox1->GetColumns()->Add(L"C2");
EXCOMBOBOXLib::IItemsPtr var_Items = spComboBox1->GetItems();
long h = var_Items->AddItem("Cell 1");
var_Items->PutCellCaption(h,long(1),"This is bit of text that's shown on multiple lines. This is bit of text that's shown on multiple lines.");
var_Items->PutCellSingleLine(h,long(1),EXCOMBOBOXLib::exCaptionWordWrap);
h = var_Items->AddItem("This is bit of text that's displayed on the entire item, divider.");
var_Items->PutItemDivider(h,0);
var_Items->PutItemDividerLine(h,EXCOMBOBOXLib::EmptyLine);
var_Items->PutCellHAlignment(h,long(0),EXCOMBOBOXLib::CenterAlignment);
|
34
|
Can I remove the "All", "Blanks" and "NonBlanks" items in the drop down filter window

/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library'
#import <ExComboBox.dll>
using namespace EXCOMBOBOXLib;
*/
EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown();
((EXCOMBOBOXLib::IColumnPtr)(spComboBox1->GetColumns()->Add(L"Column")))->PutDisplayFilterButton(VARIANT_TRUE);
spComboBox1->PutDescription(EXCOMBOBOXLib::exFilterBarAll,L"");
spComboBox1->PutDescription(EXCOMBOBOXLib::exFilterBarBlanks,L"");
spComboBox1->PutDescription(EXCOMBOBOXLib::exFilterBarNonBlanks,L"");
|
31
|
Can I make strikeout the column's header

/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library'
#import <ExComboBox.dll>
using namespace EXCOMBOBOXLib;
*/
EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown();
((EXCOMBOBOXLib::IColumnPtr)(spComboBox1->GetColumns()->Add(L"Column 1")))->PutHeaderStrikeOut(VARIANT_TRUE);
|
573
|
Can I limit the number of characters the user can type into, similar with text-box's MaxLength property
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library'
#import <ExComboBox.dll>
using namespace EXCOMBOBOXLib;
*/
EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown();
((EXCOMBOBOXLib::IColumnPtr)(spComboBox1->GetColumns()->Add(L"Max 2 chars")))->PutEditMaxLength(2);
spComboBox1->PutAutoSearch(VARIANT_FALSE);
spComboBox1->PutAutoComplete(VARIANT_FALSE);
|
290
|
Can I let the user to resize at runtime the specified item

/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library'
#import <ExComboBox.dll>
using namespace EXCOMBOBOXLib;
*/
EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown();
spComboBox1->PutScrollBySingleLine(VARIANT_TRUE);
spComboBox1->PutDrawGridLines(EXCOMBOBOXLib::exRowLines);
spComboBox1->GetColumns()->Add(L"Default");
EXCOMBOBOXLib::IItemsPtr var_Items = spComboBox1->GetItems();
var_Items->PutItemAllowSizing(var_Items->AddItem("resizable item"),VARIANT_TRUE);
var_Items->AddItem("not resizable item");
|
54
|
Can I hide the hierarchy lines

/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library'
#import <ExComboBox.dll>
using namespace EXCOMBOBOXLib;
*/
EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown();
spComboBox1->PutLinesAtRoot(EXCOMBOBOXLib::exGroupLinesAtRoot);
spComboBox1->PutHasLines(EXCOMBOBOXLib::exNoLine);
spComboBox1->GetColumns()->Add(L"Column");
EXCOMBOBOXLib::IItemsPtr var_Items = spComboBox1->GetItems();
long h = var_Items->AddItem("Root 1");
var_Items->InsertItem(h,vtMissing,"Child 1");
var_Items->InsertItem(h,vtMissing,"Child 2");
var_Items->PutExpandItem(h,VARIANT_TRUE);
h = var_Items->AddItem("Root 2");
var_Items->InsertItem(h,vtMissing,"Child");
|
401
|
Can I have an image displayed after the text. Can I get that effect without using HTML content

/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library'
#import <ExComboBox.dll>
using namespace EXCOMBOBOXLib;
*/
EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown();
spComboBox1->Images(_bstr_t("gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0/oFBoVDolFo1HpFJpVLplNp1PqFRqVTq") +
"lVq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m" +
"0ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qOx3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/y" +
"NAOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA=");
((EXCOMBOBOXLib::IColumnPtr)(spComboBox1->GetColumns()->Add(L"Column")))->PutDef(EXCOMBOBOXLib::exCellDrawPartsOrder,"caption,icon,check,icons,picture");
EXCOMBOBOXLib::IItemsPtr var_Items = spComboBox1->GetItems();
long h = var_Items->AddItem("Text");
var_Items->PutCellImage(h,long(0),1);
|
42
|
Can I filter for values using OR - NOT , instead AND operator

/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library'
#import <ExComboBox.dll>
using namespace EXCOMBOBOXLib;
*/
EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown();
EXCOMBOBOXLib::IColumnPtr var_Column = ((EXCOMBOBOXLib::IColumnPtr)(spComboBox1->GetColumns()->Add(L"Column 1")));
var_Column->PutDisplayFilterButton(VARIANT_TRUE);
var_Column->PutFilterType(EXCOMBOBOXLib::exBlanks);
EXCOMBOBOXLib::IColumnPtr var_Column1 = ((EXCOMBOBOXLib::IColumnPtr)(spComboBox1->GetColumns()->Add(L"Column 2")));
var_Column1->PutDisplayFilterButton(VARIANT_TRUE);
var_Column1->PutFilterType(EXCOMBOBOXLib::exBlanks);
EXCOMBOBOXLib::IColumnPtr var_Column2 = ((EXCOMBOBOXLib::IColumnPtr)(spComboBox1->GetColumns()->Add(L"Column 3")));
var_Column2->PutDisplayFilterButton(VARIANT_TRUE);
var_Column2->PutFilterType(EXCOMBOBOXLib::exBlanks);
spComboBox1->PutFilterCriteria(L"%0 or not %1 and %2");
spComboBox1->ApplyFilter();
|
8
|
Can I displays a custom size picture to column's header

/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library'
#import <ExComboBox.dll>
using namespace EXCOMBOBOXLib;
*/
EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown();
spComboBox1->PutHTMLPicture(L"pic1","c:\\exontrol\\images\\zipdisk.gif");
spComboBox1->PutHeaderHeight(48);
((EXCOMBOBOXLib::IColumnPtr)(spComboBox1->GetColumns()->Add(L"ColumnName")))->PutHTMLCaption(L"<b>HTML</b> Column <img>pic1</img> Picture");
|
403
|
Can I display the cell's check box after the text

/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library'
#import <ExComboBox.dll>
using namespace EXCOMBOBOXLib;
*/
EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown();
EXCOMBOBOXLib::IColumnPtr var_Column = ((EXCOMBOBOXLib::IColumnPtr)(spComboBox1->GetColumns()->Add(L"Column")));
var_Column->PutDef(EXCOMBOBOXLib::exCellHasCheckBox,VARIANT_TRUE);
var_Column->PutDef(EXCOMBOBOXLib::exCellDrawPartsOrder,"caption,check");
EXCOMBOBOXLib::IItemsPtr var_Items = spComboBox1->GetItems();
var_Items->PutCellHasCheckBox(var_Items->AddItem("Caption 1"),long(0),VARIANT_TRUE);
var_Items->PutCellHasCheckBox(var_Items->AddItem("Caption 2"),long(0),VARIANT_TRUE);
|
371
|
Can I display the absolute value or positive part of the number

/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library'
#import <ExComboBox.dll>
using namespace EXCOMBOBOXLib;
*/
EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown();
spComboBox1->GetColumns()->Add(L"Number");
((EXCOMBOBOXLib::IColumnPtr)(spComboBox1->GetColumns()->Add(L"Abs")))->PutComputedField(L"abs(%0)");
EXCOMBOBOXLib::IItemsPtr var_Items = spComboBox1->GetItems();
var_Items->AddItem("-1.98");
var_Items->AddItem("0.99");
var_Items->AddItem("1.23");
var_Items->AddItem("2.34");
|
19
|
Can I display multiple icons to the column's header

/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library'
#import <ExComboBox.dll>
using namespace EXCOMBOBOXLib;
*/
EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown();
spComboBox1->Images(_bstr_t("gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0/oFBoVDolFo1HpFJpVLplNp1PqFRqVTq") +
"lVq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m" +
"0ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qOx3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/y" +
"NAOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA=");
((EXCOMBOBOXLib::IColumnPtr)(spComboBox1->GetColumns()->Add(L"Column 1")))->PutHTMLCaption(L"1<img>1</img> 2 <img>2</img>...");
|
161
|
Can I display an additional buttons in the scroll bar

/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library'
#import <ExComboBox.dll>
using namespace EXCOMBOBOXLib;
*/
EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown();
spComboBox1->PutScrollPartVisible(EXCOMBOBOXLib::exHScroll,EXCOMBOBOXLib::exLeftB1Part,VARIANT_TRUE);
spComboBox1->PutScrollPartVisible(EXCOMBOBOXLib::exHScroll,EXCOMBOBOXLib::exLeftB2Part,VARIANT_TRUE);
spComboBox1->PutScrollPartVisible(EXCOMBOBOXLib::exHScroll,EXCOMBOBOXLib::exRightB6Part,VARIANT_TRUE);
spComboBox1->PutScrollPartVisible(EXCOMBOBOXLib::exHScroll,EXCOMBOBOXLib::exRightB5Part,VARIANT_TRUE);
|
209
|
Can I display a computed column so it displays the VAT, or SUM

/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library'
#import <ExComboBox.dll>
using namespace EXCOMBOBOXLib;
*/
EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown();
spComboBox1->GetColumns()->Add(L"A");
spComboBox1->GetColumns()->Add(L"B");
((EXCOMBOBOXLib::IColumnPtr)(spComboBox1->GetColumns()->Add(L"(A+B)*1.19")))->PutComputedField(L"(%0 + %1) * 1.19");
EXCOMBOBOXLib::IItemsPtr var_Items = spComboBox1->GetItems();
var_Items->PutCellCaption(var_Items->AddItem(long(1)),long(1),long(2));
EXCOMBOBOXLib::IItemsPtr var_Items1 = spComboBox1->GetItems();
var_Items1->PutCellCaption(var_Items1->AddItem(long(10)),long(1),long(20));
|
285
|
Can I display a button with some picture or icon inside

/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library'
#import <ExComboBox.dll>
using namespace EXCOMBOBOXLib;
*/
EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown();
spComboBox1->PutHTMLPicture(L"p1","c:\\exontrol\\images\\zipdisk.gif");
spComboBox1->GetColumns()->Add(L"C1");
spComboBox1->GetColumns()->Add(L"C2");
EXCOMBOBOXLib::IItemsPtr var_Items = spComboBox1->GetItems();
long h = var_Items->AddItem("Cell 1");
var_Items->PutCellCaption(h,long(1)," Button <img>p1</img> ");
var_Items->PutCellCaptionFormat(h,long(1),EXCOMBOBOXLib::exHTML);
var_Items->PutCellHAlignment(h,long(1),EXCOMBOBOXLib::RightAlignment);
var_Items->PutCellHasButton(h,long(1),VARIANT_TRUE);
var_Items->PutItemHeight(h,48);
|
284
|
Can I display a button with some picture or icon inside

/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library'
#import <ExComboBox.dll>
using namespace EXCOMBOBOXLib;
*/
EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown();
spComboBox1->Images(_bstr_t("gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0/oFBoVDolFo1HpFJpVLplNp1PqFRqVTq") +
"lVq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m" +
"0ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qOx3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/y" +
"NAOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA=");
spComboBox1->GetColumns()->Add(L"C1");
spComboBox1->GetColumns()->Add(L"C2");
EXCOMBOBOXLib::IItemsPtr var_Items = spComboBox1->GetItems();
long h = var_Items->AddItem("Cell 1");
var_Items->PutCellCaption(h,long(1)," Button <img>1</img> ");
var_Items->PutCellCaptionFormat(h,long(1),EXCOMBOBOXLib::exHTML);
var_Items->PutCellHAlignment(h,long(1),EXCOMBOBOXLib::RightAlignment);
var_Items->PutCellHasButton(h,long(1),VARIANT_TRUE);
|
283
|
Can I display a button with some icon inside

/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library'
#import <ExComboBox.dll>
using namespace EXCOMBOBOXLib;
*/
EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown();
spComboBox1->Images(_bstr_t("gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0/oFBoVDolFo1HpFJpVLplNp1PqFRqVTq") +
"lVq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m" +
"0ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qOx3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/y" +
"NAOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA=");
spComboBox1->GetColumns()->Add(L"C1");
spComboBox1->GetColumns()->Add(L"C2");
EXCOMBOBOXLib::IItemsPtr var_Items = spComboBox1->GetItems();
long h = var_Items->AddItem("Cell 1");
var_Items->PutCellCaption(h,long(1)," <img>1</img> ");
var_Items->PutCellCaptionFormat(h,long(1),EXCOMBOBOXLib::exHTML);
var_Items->PutCellHAlignment(h,long(1),EXCOMBOBOXLib::RightAlignment);
var_Items->PutCellHasButton(h,long(1),VARIANT_TRUE);
|
10
|
Can I disable sorting a column, when the user clicks the column's header, or drag it to the sort bar

/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library'
#import <ExComboBox.dll>
using namespace EXCOMBOBOXLib;
*/
EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown();
((EXCOMBOBOXLib::IColumnPtr)(spComboBox1->GetColumns()->Add(L"Unsortable")))->PutAllowSort(VARIANT_FALSE);
spComboBox1->GetColumns()->Add(L"Sortable");
|
567
|
Can I customize the count of selected items, shown on the right side of the control's label (multiple-selection)

/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library'
#import <ExComboBox.dll>
using namespace EXCOMBOBOXLib;
*/
EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown();
spComboBox1->BeginUpdate();
spComboBox1->PutHeaderAppearance(EXCOMBOBOXLib::Etched);
spComboBox1->PutStyle(EXCOMBOBOXLib::DropDownList);
spComboBox1->PutSingleSel(VARIANT_FALSE);
spComboBox1->PutSingleEdit(VARIANT_TRUE);
spComboBox1->PutLabelColumnIndex(0);
spComboBox1->PutSelBackColor(RGB(51,153,255));
spComboBox1->PutSelForeColor(RGB(255,255,255));
spComboBox1->PutLabelText(L"<bgcolor=3399FF><fgcolor=FFFFFF> %c </fgcolor></bgcolor>");
EXCOMBOBOXLib::IColumnsPtr var_Columns = spComboBox1->GetColumns();
var_Columns->Add(L"Column");
var_Columns->Add(L"Sub-Column");
EXCOMBOBOXLib::IItemsPtr var_Items = spComboBox1->GetItems();
var_Items->PutCellCaption(var_Items->AddItem("Item 1"),long(1),"SubItem 1.1");
var_Items->PutCellCaption(var_Items->AddItem("Item 2"),long(1),"SubItem 2.1");
var_Items->PutCellCaption(var_Items->AddItem("Item 3"),long(1),"SubItem 3.1");
var_Items->PutCellCaption(var_Items->AddItem("Item 4"),long(1),"SubItem 4.1");
var_Items->PutSelectItem(var_Items->GetItemByIndex(1),VARIANT_TRUE);
var_Items->PutSelectItem(var_Items->GetItemByIndex(3),VARIANT_TRUE);
spComboBox1->EndUpdate();
|
378
|
Can I convert the expression to date

/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library'
#import <ExComboBox.dll>
using namespace EXCOMBOBOXLib;
*/
EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown();
spComboBox1->GetColumns()->Add(L"Number");
((EXCOMBOBOXLib::IColumnPtr)(spComboBox1->GetColumns()->Add(L"Date")))->PutComputedField(L"date(dbl(%0))");
EXCOMBOBOXLib::IItemsPtr var_Items = spComboBox1->GetItems();
var_Items->AddItem("-1.98");
var_Items->AddItem("30000.99");
var_Items->AddItem("3561.23");
var_Items->AddItem("1232.34");
|
377
|
Can I convert the expression to a number, double or float

/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library'
#import <ExComboBox.dll>
using namespace EXCOMBOBOXLib;
*/
EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown();
spComboBox1->GetColumns()->Add(L"Number");
((EXCOMBOBOXLib::IColumnPtr)(spComboBox1->GetColumns()->Add(L"Number + 2")))->PutComputedField(L"dbl(%0)+2");
EXCOMBOBOXLib::IItemsPtr var_Items = spComboBox1->GetItems();
var_Items->AddItem("-1.98");
var_Items->AddItem("0.99");
var_Items->AddItem("1.23");
var_Items->AddItem("2.34");
|
174
|
Can I change the visual effect, appearance for the anchor, hyperlink elements, in HTML captions, after the user clicks it

/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library'
#import <ExComboBox.dll>
using namespace EXCOMBOBOXLib;
*/
EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown();
spComboBox1->PutFormatAnchor(VARIANT_FALSE,L"<b><u><fgcolor=880000> </fgcolor></u></b>");
spComboBox1->GetColumns()->Add(L"Column");
EXCOMBOBOXLib::IItemsPtr var_Items = spComboBox1->GetItems();
var_Items->PutCellCaptionFormat(var_Items->AddItem("Just an <a1>anchor</a> element ..."),long(0),EXCOMBOBOXLib::exHTML);
EXCOMBOBOXLib::IItemsPtr var_Items1 = spComboBox1->GetItems();
var_Items1->PutCellCaptionFormat(var_Items1->AddItem("Just another <a2>anchor</a> element ..."),long(0),EXCOMBOBOXLib::exHTML);
spComboBox1->GetItems()->AddItem("next item");
|
173
|
Can I change the visual effect, appearance for the anchor, hyperlink elements, in HTML captions

/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library'
#import <ExComboBox.dll>
using namespace EXCOMBOBOXLib;
*/
EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown();
spComboBox1->PutFormatAnchor(VARIANT_TRUE,L"<b><u><fgcolor=FF0000> </fgcolor></u></b>");
spComboBox1->GetColumns()->Add(L"Column");
EXCOMBOBOXLib::IItemsPtr var_Items = spComboBox1->GetItems();
var_Items->PutCellCaptionFormat(var_Items->AddItem("Just an <a1>anchor</a> element ..."),long(0),EXCOMBOBOXLib::exHTML);
EXCOMBOBOXLib::IItemsPtr var_Items1 = spComboBox1->GetItems();
var_Items1->PutCellCaptionFormat(var_Items1->AddItem("Just another <a2>anchor</a> element ..."),long(0),EXCOMBOBOXLib::exHTML);
|
53
|
Can I change the style or type for the hierarchy lines

/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library'
#import <ExComboBox.dll>
using namespace EXCOMBOBOXLib;
*/
EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown();
spComboBox1->PutLinesAtRoot(EXCOMBOBOXLib::exGroupLinesAtRoot);
spComboBox1->PutHasLines(EXCOMBOBOXLib::exThinLine);
spComboBox1->GetColumns()->Add(L"Column");
EXCOMBOBOXLib::IItemsPtr var_Items = spComboBox1->GetItems();
long h = var_Items->AddItem("Root 1");
var_Items->InsertItem(h,vtMissing,"Child 1");
var_Items->InsertItem(h,vtMissing,"Child 2");
var_Items->PutExpandItem(h,VARIANT_TRUE);
h = var_Items->AddItem("Root 2");
var_Items->InsertItem(h,vtMissing,"Child");
|
312
|
Can I change the style of the line being displayed by a divider item

/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library'
#import <ExComboBox.dll>
using namespace EXCOMBOBOXLib;
*/
EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown();
spComboBox1->PutMarkSearchColumn(VARIANT_FALSE);
spComboBox1->PutTreeColumnIndex(-1);
spComboBox1->PutScrollBySingleLine(VARIANT_FALSE);
spComboBox1->GetColumns()->Add(L"C1");
spComboBox1->GetColumns()->Add(L"C2");
EXCOMBOBOXLib::IItemsPtr var_Items = spComboBox1->GetItems();
long h = var_Items->AddItem("Cell 1");
var_Items->PutCellCaption(h,long(1),"This is bit of text that's shown on multiple lines. This is bit of text that's shown on multiple lines.");
var_Items->PutCellSingleLine(h,long(1),EXCOMBOBOXLib::exCaptionWordWrap);
h = var_Items->AddItem("This is bit of text that's displayed on the entire item, divider.");
var_Items->PutItemDivider(h,0);
var_Items->PutItemDividerLine(h,EXCOMBOBOXLib::DoubleDotLine);
var_Items->PutCellHAlignment(h,long(0),EXCOMBOBOXLib::CenterAlignment);
var_Items->PutItemHeight(h,24);
|
402
|
Can I change the order of the parts in the cell, as checkbox after the text, and so on

/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library'
#import <ExComboBox.dll>
using namespace EXCOMBOBOXLib;
*/
EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown();
spComboBox1->Images(_bstr_t("gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0/oFBoVDolFo1HpFJpVLplNp1PqFRqVTq") +
"lVq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m" +
"0ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qOx3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/y" +
"NAOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA=");
((EXCOMBOBOXLib::IColumnPtr)(spComboBox1->GetColumns()->Add(L"Column")))->PutDef(EXCOMBOBOXLib::exCellDrawPartsOrder,"caption,check,icon,icons,picture");
EXCOMBOBOXLib::IItemsPtr var_Items = spComboBox1->GetItems();
long h = var_Items->AddItem("Text");
var_Items->PutCellImage(h,long(0),1);
var_Items->PutCellHasCheckBox(h,long(0),VARIANT_TRUE);
|
170
|
Can I change the order of the buttons in the scroll bar

/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library'
#import <ExComboBox.dll>
using namespace EXCOMBOBOXLib;
*/
EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown();
spComboBox1->PutScrollOrderParts(EXCOMBOBOXLib::exHScroll,L"t,l,r");
spComboBox1->PutScrollOrderParts(EXCOMBOBOXLib::exVScroll,L"t,l,r");
|
39
|
Can I change the OR string in the filter bar

/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library'
#import <ExComboBox.dll>
using namespace EXCOMBOBOXLib;
*/
EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown();
EXCOMBOBOXLib::IColumnPtr var_Column = ((EXCOMBOBOXLib::IColumnPtr)(spComboBox1->GetColumns()->Add(L"Column 1")));
var_Column->PutDisplayFilterButton(VARIANT_TRUE);
var_Column->PutFilterType(EXCOMBOBOXLib::exBlanks);
EXCOMBOBOXLib::IColumnPtr var_Column1 = ((EXCOMBOBOXLib::IColumnPtr)(spComboBox1->GetColumns()->Add(L"Column 2")));
var_Column1->PutDisplayFilterButton(VARIANT_TRUE);
var_Column1->PutFilterType(EXCOMBOBOXLib::exNonBlanks);
spComboBox1->PutFilterCriteria(L"%0 or %1");
spComboBox1->PutDescription(EXCOMBOBOXLib::exFilterBarOr,L" | ");
spComboBox1->ApplyFilter();
|
41
|
Can I change the NOT string in the filter bar

/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library'
#import <ExComboBox.dll>
using namespace EXCOMBOBOXLib;
*/
EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown();
EXCOMBOBOXLib::IColumnPtr var_Column = ((EXCOMBOBOXLib::IColumnPtr)(spComboBox1->GetColumns()->Add(L"Column 1")));
var_Column->PutDisplayFilterButton(VARIANT_TRUE);
var_Column->PutFilterType(EXCOMBOBOXLib::exBlanks);
EXCOMBOBOXLib::IColumnPtr var_Column1 = ((EXCOMBOBOXLib::IColumnPtr)(spComboBox1->GetColumns()->Add(L"Column 2")));
var_Column1->PutDisplayFilterButton(VARIANT_TRUE);
var_Column1->PutFilterType(EXCOMBOBOXLib::exNonBlanks);
spComboBox1->PutFilterCriteria(L"not %0 or %1");
spComboBox1->PutDescription(EXCOMBOBOXLib::exFilterBarNot,L" ! ");
spComboBox1->PutDescription(EXCOMBOBOXLib::exFilterBarIsNonBlank,L" ! IsBlank");
spComboBox1->ApplyFilter();
|
20
|
Can I change the height of the header bar

/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library'
#import <ExComboBox.dll>
using namespace EXCOMBOBOXLib;
*/
EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown();
spComboBox1->PutHeaderHeight(32);
|
317
|
Can I change the foreground color for the tooltip

/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library'
#import <ExComboBox.dll>
using namespace EXCOMBOBOXLib;
*/
EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown();
spComboBox1->PutToolTipDelay(1);
spComboBox1->PutToolTipWidth(364);
((EXCOMBOBOXLib::IColumnPtr)(spComboBox1->GetColumns()->Add(L"tootip")))->PutToolTip(L"<fgcolor=FF0000>this is a tooltip assigned to a column</fgcolor>");
|
318
|
Can I change the forecolor for the tooltip

/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library'
#import <ExComboBox.dll>
using namespace EXCOMBOBOXLib;
*/
EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown();
spComboBox1->PutToolTipDelay(1);
spComboBox1->PutToolTipWidth(364);
spComboBox1->PutBackground(EXCOMBOBOXLib::exToolTipForeColor,RGB(255,0,0));
((EXCOMBOBOXLib::IColumnPtr)(spComboBox1->GetColumns()->Add(L"tootip")))->PutToolTip(L"this is a tooltip assigned to a column");
|
21
|
Can I change the font to display the column's header

/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library'
#import <ExComboBox.dll>
using namespace EXCOMBOBOXLib;
*/
EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown();
spComboBox1->PutHeaderHeight(34);
((EXCOMBOBOXLib::IColumnPtr)(spComboBox1->GetColumns()->Add(L"Column 1")))->PutHTMLCaption(L"<font Tahoma;14>Column</font> 1");
|
171
|
Can I change the font for the tooltip

/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library'
#import <ExComboBox.dll>
using namespace EXCOMBOBOXLib;
*/
EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown();
spComboBox1->PutToolTipDelay(1);
/*
Copy and paste the following directives to your header file as
it defines the namespace 'stdole' for the library: 'OLE Automation'
#import <stdole2.tlb>
*/
stdole::FontPtr var_StdFont = spComboBox1->GetToolTipFont();
var_StdFont->PutName(L"Tahoma");
var_StdFont->PutSize(_variant_t(long(14)));
spComboBox1->PutToolTipWidth(364);
((EXCOMBOBOXLib::IColumnPtr)(spComboBox1->GetColumns()->Add(L"tootip")))->PutToolTip(L"this is a tooltip assigned to a column");
|
172
|
Can I change the font for the tooltip

/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library'
#import <ExComboBox.dll>
using namespace EXCOMBOBOXLib;
*/
EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown();
spComboBox1->PutToolTipDelay(1);
spComboBox1->PutToolTipWidth(364);
((EXCOMBOBOXLib::IColumnPtr)(spComboBox1->GetColumns()->Add(L"tootip")))->PutToolTip(L"<br><font Tahoma;14>this</font> is a tooltip assigned to a column<br>");
|
321
|
Can I change the default border of the tooltip, using your EBN files

/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library'
#import <ExComboBox.dll>
using namespace EXCOMBOBOXLib;
*/
EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown();
spComboBox1->PutToolTipDelay(1);
spComboBox1->PutToolTipWidth(364);
spComboBox1->GetVisualAppearance()->Add(1,"c:\\exontrol\\images\\normal.ebn");
spComboBox1->PutBackground(EXCOMBOBOXLib::exToolTipAppearance,0x1000000);
((EXCOMBOBOXLib::IColumnPtr)(spComboBox1->GetColumns()->Add(L"tootip")))->PutToolTip(L"this is a tooltip assigned to a column");
|
320
|
Can I change the background color for the tooltip

/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library'
#import <ExComboBox.dll>
using namespace EXCOMBOBOXLib;
*/
EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown();
spComboBox1->PutToolTipDelay(1);
spComboBox1->PutToolTipWidth(364);
spComboBox1->PutBackground(EXCOMBOBOXLib::exToolTipBackColor,RGB(255,0,0));
((EXCOMBOBOXLib::IColumnPtr)(spComboBox1->GetColumns()->Add(L"tootip")))->PutToolTip(L"this is a tooltip assigned to a column");
|
362
|
Can I change the background color for items or cells that contains a specified string

/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library'
#import <ExComboBox.dll>
using namespace EXCOMBOBOXLib;
*/
EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown();
spComboBox1->GetConditionalFormats()->Add(L"%0 contains 'hi'",vtMissing)->PutBackColor(RGB(255,0,0));
spComboBox1->GetColumns()->Add(L"");
EXCOMBOBOXLib::IItemsPtr var_Items = spComboBox1->GetItems();
long h = var_Items->AddItem("Root");
var_Items->InsertItem(h,vtMissing,"Child 1");
var_Items->InsertItem(h,vtMissing,"Child 2");
var_Items->InsertItem(h,vtMissing,"Chld 3");
var_Items->PutExpandItem(h,VARIANT_TRUE);
|
38
|
Can I change the AND string in the filter bar

/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library'
#import <ExComboBox.dll>
using namespace EXCOMBOBOXLib;
*/
EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown();
EXCOMBOBOXLib::IColumnPtr var_Column = ((EXCOMBOBOXLib::IColumnPtr)(spComboBox1->GetColumns()->Add(L"Column 1")));
var_Column->PutDisplayFilterButton(VARIANT_TRUE);
var_Column->PutFilterType(EXCOMBOBOXLib::exBlanks);
EXCOMBOBOXLib::IColumnPtr var_Column1 = ((EXCOMBOBOXLib::IColumnPtr)(spComboBox1->GetColumns()->Add(L"Column 2")));
var_Column1->PutDisplayFilterButton(VARIANT_TRUE);
var_Column1->PutFilterType(EXCOMBOBOXLib::exNonBlanks);
spComboBox1->PutDescription(EXCOMBOBOXLib::exFilterBarAnd,L" & ");
spComboBox1->ApplyFilter();
|
46
|
Can I change the "Today" caption being displayed in the drop down calendar, when I filter for dates

/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library'
#import <ExComboBox.dll>
using namespace EXCOMBOBOXLib;
*/
EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown();
EXCOMBOBOXLib::IColumnPtr var_Column = ((EXCOMBOBOXLib::IColumnPtr)(spComboBox1->GetColumns()->Add(L"Column")));
var_Column->PutDisplayFilterButton(VARIANT_TRUE);
var_Column->PutDisplayFilterDate(VARIANT_TRUE);
spComboBox1->PutDescription(EXCOMBOBOXLib::exFilterBarDateTodayCaption,L"Azi");
spComboBox1->ApplyFilter();
|
43
|
Can I change the "Date:" caption when the column's drop down filter window is shown

/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library'
#import <ExComboBox.dll>
using namespace EXCOMBOBOXLib;
*/
EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown();
EXCOMBOBOXLib::IColumnPtr var_Column = ((EXCOMBOBOXLib::IColumnPtr)(spComboBox1->GetColumns()->Add(L"Column")));
var_Column->PutDisplayFilterButton(VARIANT_TRUE);
var_Column->PutDisplayFilterDate(VARIANT_TRUE);
spComboBox1->PutDescription(EXCOMBOBOXLib::exFilterBarDate,L"Range");
spComboBox1->ApplyFilter();
|
536
|
Can I break the cell's caption using the line break <br> or \r\n (Sample 2)

/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library'
#import <ExComboBox.dll>
using namespace EXCOMBOBOXLib;
*/
EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown();
spComboBox1->BeginUpdate();
spComboBox1->PutDrawGridLines(EXCOMBOBOXLib::exRowLines);
spComboBox1->PutColumnAutoResize(VARIANT_FALSE);
spComboBox1->PutScrollBySingleLine(VARIANT_TRUE);
((EXCOMBOBOXLib::IColumnPtr)(spComboBox1->GetColumns()->Add(L"Default")))->PutWidth(128);
EXCOMBOBOXLib::IItemsPtr var_Items = spComboBox1->GetItems();
var_Items->PutCellSingleLine(var_Items->AddItem("This is the first line.\\r\\nThis is the second line.\\r\\nThis is the third line."),long(0),EXCOMBOBOXLib::exCaptionBreakWrap);
var_Items->AddItem("This is the first line.\\r\\nThis is the second line.\\r\\nThis is the third line.");
spComboBox1->EndUpdate();
|
535
|
Can I break the cell's caption using the line break <br> or \r\n (Sample 1)

/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library'
#import <ExComboBox.dll>
using namespace EXCOMBOBOXLib;
*/
EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown();
spComboBox1->BeginUpdate();
spComboBox1->PutDrawGridLines(EXCOMBOBOXLib::exRowLines);
spComboBox1->PutColumnAutoResize(VARIANT_FALSE);
spComboBox1->PutScrollBySingleLine(VARIANT_TRUE);
EXCOMBOBOXLib::IColumnPtr var_Column = ((EXCOMBOBOXLib::IColumnPtr)(spComboBox1->GetColumns()->Add(L"Default")));
var_Column->PutWidth(128);
var_Column->PutDef(EXCOMBOBOXLib::exCellSingleLine,long(1));
EXCOMBOBOXLib::IItemsPtr var_Items = spComboBox1->GetItems();
var_Items->AddItem("This is the first line.\\r\\nThis is the second line.\\r\\nThis is the third line.");
var_Items->AddItem("This is the first line.\\r\\nThis is the second line.\\r\\nThis is the third line.");
spComboBox1->EndUpdate();
|
105
|
Can I apply an EBN skin to the control's filter bar so I can change its visual appearance

/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library'
#import <ExComboBox.dll>
using namespace EXCOMBOBOXLib;
*/
EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown();
spComboBox1->GetVisualAppearance()->Add(1,"c:\\exontrol\\images\\normal.ebn");
spComboBox1->PutFilterBarBackColor(0x1000000);
EXCOMBOBOXLib::IColumnPtr var_Column = ((EXCOMBOBOXLib::IColumnPtr)(spComboBox1->GetColumns()->Add(L"Column")));
var_Column->PutDisplayFilterButton(VARIANT_TRUE);
var_Column->PutFilterType(EXCOMBOBOXLib::exBlanks);
spComboBox1->ApplyFilter();
|
431
|
Can I allow sorting only the child items

/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library'
#import <ExComboBox.dll>
using namespace EXCOMBOBOXLib;
*/
EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown();
spComboBox1->BeginUpdate();
spComboBox1->GetColumns()->Add(L"Childs");
EXCOMBOBOXLib::IItemsPtr var_Items = spComboBox1->GetItems();
long h = var_Items->AddItem("Root 1");
var_Items->PutSortableItem(h,VARIANT_FALSE);
var_Items->InsertItem(h,vtMissing,"Child 1");
var_Items->InsertItem(h,vtMissing,"Child 2");
var_Items->PutExpandItem(h,VARIANT_TRUE);
h = var_Items->AddItem("Root 2");
var_Items->PutSortableItem(h,VARIANT_FALSE);
var_Items->InsertItem(h,vtMissing,"Child 1");
var_Items->InsertItem(h,vtMissing,"Child 2");
var_Items->PutExpandItem(h,VARIANT_TRUE);
spComboBox1->EndUpdate();
|
291
|
Can I add a +/- ( expand / collapse ) buttons to each item, so I can load the child items later

/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library'
#import <ExComboBox.dll>
using namespace EXCOMBOBOXLib;
*/
EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown();
spComboBox1->PutLinesAtRoot(EXCOMBOBOXLib::exLinesAtRoot);
spComboBox1->GetColumns()->Add(L"Default");
EXCOMBOBOXLib::IItemsPtr var_Items = spComboBox1->GetItems();
var_Items->PutItemHasChildren(var_Items->AddItem("parent item with no child items"),VARIANT_TRUE);
var_Items->AddItem("next item");
|
187
|
By default, the column gets sorted descending, when I first click its header. How can I change so the column gets sorted ascending when the user first clicks the column's header

/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library'
#import <ExComboBox.dll>
using namespace EXCOMBOBOXLib;
*/
EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown();
((EXCOMBOBOXLib::IColumnPtr)(spComboBox1->GetColumns()->Add(L"Sort")))->PutDefaultSortOrder(VARIANT_TRUE);
|
75
|
By default, the column gets sorted as strings, so how do I sort a column by time only

/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library'
#import <ExComboBox.dll>
using namespace EXCOMBOBOXLib;
*/
EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown();
((EXCOMBOBOXLib::IColumnPtr)(spComboBox1->GetColumns()->Add(L"desc")))->PutSortType(EXCOMBOBOXLib::SortTime);
EXCOMBOBOXLib::IItemsPtr var_Items = spComboBox1->GetItems();
var_Items->AddItem("11:00");
var_Items->AddItem("10:10");
var_Items->AddItem("12:12");
var_Items->SortChildren(0,long(0),VARIANT_FALSE);
|
73
|
By default, the column gets sorted as strings, so how do I sort a column by dates

/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library'
#import <ExComboBox.dll>
using namespace EXCOMBOBOXLib;
*/
EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown();
((EXCOMBOBOXLib::IColumnPtr)(spComboBox1->GetColumns()->Add(L"desc")))->PutSortType(EXCOMBOBOXLib::SortDate);
EXCOMBOBOXLib::IItemsPtr var_Items = spComboBox1->GetItems();
var_Items->AddItem("1/1/2001");
var_Items->AddItem("1/2/2002");
var_Items->AddItem("1/3/2003");
var_Items->SortChildren(0,long(0),VARIANT_FALSE);
|
74
|
By default, the column gets sorted as strings, so how do I sort a column by date and time

/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library'
#import <ExComboBox.dll>
using namespace EXCOMBOBOXLib;
*/
EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown();
((EXCOMBOBOXLib::IColumnPtr)(spComboBox1->GetColumns()->Add(L"desc")))->PutSortType(EXCOMBOBOXLib::SortDateTime);
EXCOMBOBOXLib::IItemsPtr var_Items = spComboBox1->GetItems();
var_Items->AddItem("1/1/2001 11:00");
var_Items->AddItem("1/1/2001 10:10");
var_Items->AddItem("1/3/2003");
var_Items->SortChildren(0,long(0),VARIANT_FALSE);
|
606
|
Bolds only the expanded items

/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library'
#import <ExComboBox.dll>
using namespace EXCOMBOBOXLib;
*/
EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown();
spComboBox1->BeginUpdate();
spComboBox1->PutHeaderAppearance(EXCOMBOBOXLib::Etched);
spComboBox1->PutHeaderHeight(24);
spComboBox1->PutLinesAtRoot(EXCOMBOBOXLib::exLinesAtRoot);
spComboBox1->GetConditionalFormats()->Add(L"%CX0",vtMissing)->PutBold(VARIANT_TRUE);
spComboBox1->GetColumns()->Add(L"Description");
EXCOMBOBOXLib::IItemsPtr var_Items = spComboBox1->GetItems();
long h = var_Items->AddItem("Root 1");
var_Items->InsertItem(h,vtMissing,"Child 1");
var_Items->InsertItem(var_Items->InsertItem(h,vtMissing,"Child 2"),vtMissing,"Sub-Child 2");
var_Items->PutCellState(var_Items->InsertItem(h,vtMissing,"Child 3"),long(0),1);
var_Items->PutExpandItem(h,VARIANT_TRUE);
h = var_Items->AddItem("Root 2");
var_Items->InsertItem(h,vtMissing,"Child 1");
var_Items->InsertItem(h,vtMissing,"Child 2");
var_Items->InsertItem(h,vtMissing,"Child 3");
spComboBox1->EndUpdate();
|
593
|
Are there any properties to set text margins at tooltip, like Margins="5,5" (method 1). Margins is used to get some space between text and the tooltips border
// MouseMove event - Occurs when the user moves the mouse.
void OnMouseMoveComboBox1(short Button, short Shift, long X, long Y)
{
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library'
#import <ExComboBox.dll>
using namespace EXCOMBOBOXLib;
*/
EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown();
spComboBox1->ShowToolTip(L"new content","",vtMissing,"+8","+8");
}
EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown();
spComboBox1->PutToolTipMargin(L"16,8");
|
539
|
ADOR, MDB

/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library'
#import <ExComboBox.dll>
using namespace EXCOMBOBOXLib;
*/
EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown();
spComboBox1->BeginUpdate();
spComboBox1->PutColumnAutoResize(VARIANT_FALSE);
/*
Includes the definition for CreateObject function like follows:
#include <comdef.h>
IUnknownPtr CreateObject( BSTR Object )
{
IUnknownPtr spResult;
spResult.CreateInstance( Object );
return spResult;
};
*/
/*
Copy and paste the following directives to your header file as
it defines the namespace 'ADODB' for the library: 'Microsoft ActiveX Data Objects 6.1 Library'
#import <msado15.dll> rename("EOF","REOF")
*/
ADODB::_RecordsetPtr rs = ::CreateObject(L"ADOR.Recordset");
rs->Open("Orders","Provider=Microsoft.ACE.OLEDB.12.0;Data Source=C:\\Program Files\\Exontrol\\ExComboBox\\Sample\\Access\\sample.mdb",ADODB::adOpenStatic,ADODB::adLockOptimistic,0);
spComboBox1->PutDataSource(((ADODB::_RecordsetPtr)(rs)));
spComboBox1->PutValue(long(10248));
spComboBox1->EndUpdate();
|
541
|
ADOR, ACCDB

/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library'
#import <ExComboBox.dll>
using namespace EXCOMBOBOXLib;
*/
EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown();
spComboBox1->BeginUpdate();
spComboBox1->PutColumnAutoResize(VARIANT_FALSE);
/*
Includes the definition for CreateObject function like follows:
#include <comdef.h>
IUnknownPtr CreateObject( BSTR Object )
{
IUnknownPtr spResult;
spResult.CreateInstance( Object );
return spResult;
};
*/
/*
Copy and paste the following directives to your header file as
it defines the namespace 'ADODB' for the library: 'Microsoft ActiveX Data Objects 6.1 Library'
#import <msado15.dll> rename("EOF","REOF")
*/
ADODB::_RecordsetPtr rs = ::CreateObject(L"ADOR.Recordset");
rs->Open("Orders","Provider=Microsoft.ACE.OLEDB.12.0;Data Source=C:\\Program Files\\Exontrol\\ExComboBox\\Sample\\Access\\sample.accdb",ADODB::adOpenStatic,ADODB::adLockOptimistic,0);
spComboBox1->PutDataSource(((ADODB::_RecordsetPtr)(rs)));
spComboBox1->PutValue(long(10248));
spComboBox1->EndUpdate();
|
540
|
ADODB, MDB

/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library'
#import <ExComboBox.dll>
using namespace EXCOMBOBOXLib;
*/
EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown();
spComboBox1->BeginUpdate();
spComboBox1->PutColumnAutoResize(VARIANT_FALSE);
/*
Includes the definition for CreateObject function like follows:
#include <comdef.h>
IUnknownPtr CreateObject( BSTR Object )
{
IUnknownPtr spResult;
spResult.CreateInstance( Object );
return spResult;
};
*/
/*
Copy and paste the following directives to your header file as
it defines the namespace 'ADODB' for the library: 'Microsoft ActiveX Data Objects 6.1 Library'
#import <msado15.dll> rename("EOF","REOF")
*/
ADODB::_RecordsetPtr rs = ::CreateObject(L"ADODB.Recordset");
rs->Open("Orders","Provider=Microsoft.ACE.OLEDB.12.0;Data Source=C:\\Program Files\\Exontrol\\ExComboBox\\Sample\\Access\\sample.mdb",ADODB::adOpenStatic,ADODB::adLockOptimistic,0);
spComboBox1->PutDataSource(((ADODB::_RecordsetPtr)(rs)));
spComboBox1->PutValue(long(10248));
spComboBox1->EndUpdate();
|
542
|
ADODB, ACCDB, x64

/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library'
#import <ExComboBox.dll>
using namespace EXCOMBOBOXLib;
*/
EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown();
spComboBox1->BeginUpdate();
spComboBox1->PutColumnAutoResize(VARIANT_FALSE);
/*
Includes the definition for CreateObject function like follows:
#include <comdef.h>
IUnknownPtr CreateObject( BSTR Object )
{
IUnknownPtr spResult;
spResult.CreateInstance( Object );
return spResult;
};
*/
/*
Copy and paste the following directives to your header file as
it defines the namespace 'ADODB' for the library: 'Microsoft ActiveX Data Objects 6.1 Library'
#import <msado15.dll> rename("EOF","REOF")
*/
ADODB::_RecordsetPtr rs = ::CreateObject(L"ADODB.Recordset");
rs->Open("Orders","Provider=Microsoft.ACE.OLEDB.12.0;Data Source=C:\\Program Files\\Exontrol\\ExComboBox\\Sample\\Access\\sample.accdb",ADODB::adOpenKeyset,ADODB::adLockReadOnly,0);
spComboBox1->PutDataSource(((ADODB::_RecordsetPtr)(rs)));
spComboBox1->PutValue(long(10248));
spComboBox1->EndUpdate();
|
531
|
A black portion is shown while I am using the BackColorAlternate with EBN colors. What can I do

/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library'
#import <ExComboBox.dll>
using namespace EXCOMBOBOXLib;
*/
EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown();
spComboBox1->BeginUpdate();
spComboBox1->PutColumnAutoResize(VARIANT_TRUE);
spComboBox1->PutDefaultItemHeight(20);
spComboBox1->GetVisualAppearance()->Add(1,_bstr_t("gBFLBCJwBAEHhEJAAEhIDhAxHAxg0HG0Mg4xGI3HMOig3GcJiYAf8jAEhhUnAAyhEqg8hk0oAsIjgAiAwmYxGA4mYzGwwkI0i0ooUnB0IBMIl1Dg8zmYyGolptPkI1m") +
"Y1GAll9KoUslNIrVCqNQldShFUstXAVfrVcrlZtVhuFnsUHq1zoczoQGhFBkNpg6zbDykUkhsPHE2h85nc9n8xtVDtlex9Msd2p1YstVq9ux8HyMtzuFz1PsNTzQlv2h" +
"hWfkuqpeVuN0q+nvEooN5veSAGpkb/ACcZrvhU3w83nM/poxGuchGpoVBvWgg+8knA4WimnFxI45Er5XOlHMg/Q3XU33W4ew9Wyu11mchDagcO7zus8VDoNBBEIKBpMY" +
"6DqOQyokhA/IQIQmwMk4bIQFDcoO6LWgwhQkNcABwEyAB5GwWbet6cRQg3DENQ5D8QxADZvEkAB8nabsURGeBpFM3pwE2AEZRpDx/neZpOR3Dz9oO/r/wCMoZNTBQAQR" +
"JSEwYg8HPGhEIoNCaEwq10gQ2WcRt7LcRxRFpuxUAEURQ3sczBEMgTTG8gN7HpOSEAEiQBAQZpmQ0DibPUFwbKcHwkhQoQtNQNzNEMbABOKDy/DMYQzHLeoPL0OTJSUd" +
"0pHcxTewk5zrIygIRPslz4lEngBKIAQivgASs/kLSBTlO00f8t0vGcgUbDlDRjXLCUNRERRvRgAHW2oAICA==");
EXCOMBOBOXLib::IColumnPtr var_Column = ((EXCOMBOBOXLib::IColumnPtr)(spComboBox1->GetColumns()->Add(L"Default")));
var_Column->PutDef(EXCOMBOBOXLib::exCellHasCheckBox,VARIANT_TRUE);
var_Column->PutPartialCheck(VARIANT_TRUE);
EXCOMBOBOXLib::IColumnPtr var_Column1 = ((EXCOMBOBOXLib::IColumnPtr)(spComboBox1->GetColumns()->Add(L"Position")));
var_Column1->PutFormatColumn(L"1 rindex ``");
var_Column1->PutVisible(VARIANT_FALSE);
EXCOMBOBOXLib::IConditionalFormatPtr var_ConditionalFormat = spComboBox1->GetConditionalFormats()->Add(L"%C1 mod 2",vtMissing);
var_ConditionalFormat->PutBackColor(0x1000000);
EXCOMBOBOXLib::IItemsPtr var_Items = spComboBox1->GetItems();
var_Items->AddItem("Item 1");
var_Items->AddItem("Item 2");
var_Items->AddItem("Item 3");
var_Items->AddItem("Item 4");
spComboBox1->EndUpdate();
|